How to convert .hdf file to star file again?

1,014 views
Skip to first unread message

d sun

unread,
Jul 7, 2016, 4:33:57 PM7/7/16
to EMAN2
I am dealing with a cryo-EM dataset. I first did auto-boxing by Relion. Then, I used sxrelion2sprax.py to convert my .star to .hdf. After Kmeans-2D classification by Sparx, I would like to convert .hdf back to .star. Could you please tell me how to convert .hdf to .star again? Thanks!


Steve Ludtke

unread,
Jul 7, 2016, 9:26:18 PM7/7/16
to em...@googlegroups.com
star files are text files, not image files. You can convert HDF files to MRC stack files by saying

e2proc2d.py file.hdf file.mrcs

not sure if this will encompass everything you are trying to accomplish...
----------------------------------------------------------------------------
Steven Ludtke, Ph.D.
Professor, Dept. of Biochemistry and Mol. Biol.                Those who do
Co-Director National Center For Macromolecular Imaging            ARE
Baylor College of Medicine                                     The converse
slu...@bcm.edu  -or-  ste...@alumni.caltech.edu               also applies
http://ncmi.bcm.edu/~stevel

On Jul 7, 2016, at 3:33 PM, d sun <dwsu...@gmail.com> wrote:

I am dealing with a cryo-EM dataset. I first did auto-boxing by Relion. Then, I used sxrelion2sprax.py to convert my .star to .hdf. After Kmeans-2D classification by Sparx, I would like to convert .hdf back to .star. Could you please tell me how to convert .hdf to .star again? Thanks!



--
--
----------------------------------------------------------------------------------------------
You received this message because you are subscribed to the Google
Groups "EMAN2" group.
To post to this group, send email to em...@googlegroups.com
To unsubscribe from this group, send email to eman2+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/eman2

---
You received this message because you are subscribed to the Google Groups "EMAN2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to eman2+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mike Strauss

unread,
Jul 8, 2016, 4:27:24 AM7/8/16
to EMAN2
Hi Sun

hdf files contain everything you need, if the headers are properly populated.  You can write a python script that will take the header information from the hdf and output it to a text file.  You can use relion_star_loopheader to help get the star file started, but you have to know what parameters you want to populate it with (ctf, source image, position information, alignment parameters, etc..).  From there, you just need to make an mrc stack as Steve mentioned.

Regards,

mike

d sun

unread,
Jul 8, 2016, 9:42:05 AM7/8/16
to EMAN2
Hi Mike,

Basically, I first converted my .star to .hdf by sxreliontospax,py.  It generated: Coordinates (contains all my .box in my .star), sparx_params_ctf.txt (ctf information for my particles). After Kmeans-2D classification,  I split  multi_ref.hdf into single hdf file. After combing the good class of single hdf file into another combined hdf file, I would like to convert the new combined .hdf to .star for Relion-3D refinement. I can use sxheader.py to import my ctf to the new combined .hdf file. But then, can you give me a example of pyhon scrip about how to convert .hdf to a text file?

Thanks!

Paul Penczek

unread,
Jul 8, 2016, 9:53:07 AM7/8/16
to em...@googlegroups.com, Zhong Huang
Zhong Huang can help

Regards,
Pawel

Mike Strauss

unread,
Jul 8, 2016, 10:45:05 AM7/8/16
to em...@googlegroups.com
Hi,

I'm afraid don't have a python script available at this point. But you
can look at the sparx wiki on how to look at the header information of
hdf files. That should get you started.
> You received this message because you are subscribed to a topic in the
> Google Groups "EMAN2" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/eman2/5VqL2w-xFHI/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
Reply all
Reply to author
Forward
0 new messages