converting a mrcs file to a set of png files

1,093 views
Skip to first unread message

ku...@healthtechnologyinnovations.com

unread,
Nov 20, 2018, 6:05:43 PM11/20/18
to EMAN2
Hi Steve
I just downloaded EMAN2.  I am trying to convert mrcs into its constituent png files. when I used e2proc2d.  What should be the syntax I should follow? thanks in advance --kumar


Steve Ludtke

unread,
Nov 20, 2018, 8:22:33 PM11/20/18
to em...@googlegroups.com
Hi Kumar,

e2proc2d.py --help

is always the place to start. If you do that, you'll see this example:

convert all MRC format files in current directory to HDF format:
e2proc2d.py *.mrc @.hdf

From this you can see all you need to do is:

e2proc2d.py *.mrc @.png

to convert all MRC files in the current folder to PNG format. Note that this assumes there is only one image in each MRC file. If it's an MRC stack, then you will probably want to split the MRC into multiple PNGs instead. Also note that this will produce 16 bit greyscale PNGs. If the input MRC is floating point, this may or may not be what you want, and if you are doing this for purposes of making a PPT or using photo editors, some tools may not like 16 bits.

--------------------------------------------------------------------------------------
Steven Ludtke, Ph.D. <slu...@bcm.edu>                      Baylor College of Medicine 
Charles C. Bell Jr., Professor of Structural Biology
Dept. of Biochemistry and Molecular Biology                      (www.bcm.edu/biochem)
Academic Director, CryoEM Core                                        (cryoem.bcm.edu)
Co-Director CIBR Center                                    (www.bcm.edu/research/cibr)
Co-Director National Center For Macromolecular Imaging                  (ncmi.bcm.edu)



On Nov 20, 2018, at 5:05 PM, ku...@healthtechnologyinnovations.com wrote:

Hi Steve
I just downloaded EMAN2.  I am trying to convert mrcs into its constituent png files. when I used e2proc2d.  What should be the syntax I should follow? thanks in advance --kumar



--
--
----------------------------------------------------------------------------------------------
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.

ku...@healthtechnologyinnovations.com

unread,
Nov 21, 2018, 1:14:57 AM11/21/18
to EMAN2
Thanks Steve.  I looked thru the spec (provided by help), and did the following, and it worked:
e2proc2d.py classes.mrcs class.png --unstacking

This produced class-001.png thru class-100.png (100 class images stored in the mrcs file), which is what I was looking to create. However, I think the png images are not sharp (somewhat fuzzy).  Is there any flag/parameter that I could set to "sharpen" images?

Regards
--kumar
Reply all
Reply to author
Forward
0 new messages