LST file to TIFF

18 views
Skip to first unread message

S. Saif Hasan

unread,
Feb 6, 2025, 11:46:31 AM2/6/25
to em...@googlegroups.com
Hello,

I have generated an EMAN2 LST file with negatively stained virus particles. Is there a way to export the particles as individual TIFF files? This is for a teaching assignment in image processing. Thank you.

Saif

Steve Ludtke

unread,
Feb 6, 2025, 1:44:05 PM2/6/25
to em...@googlegroups.com
Sure:

- Extract the particles in the usual way as a per-micrograph .hdf stack (standard tutorial process)
- Run CTF autoprocessing on the particles (note that amplitude contrast should probably be set to 40-60% for neg stain). Do this even if you don't want to use phase-flipped images.
- you should now see a set of .lst files (similar to .star files, but more flexible) in the sets/ folder
- e2proc2d.py sets/<appropriate .lst file>  ptcls.tif  --unstacking

this will produce a numbered stack of individual particle images in tiff format.

--
--
----------------------------------------------------------------------------------------------
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.
To view this discussion visit https://groups.google.com/d/msgid/eman2/CAHOhtpQpJzJ2eVXDxy2%2BJA-VSLfs3oND%3DiTxJcqkt_%3Dqkr%2B7JA%40mail.gmail.com.

S. Saif Hasan

unread,
Feb 10, 2025, 9:43:35 PM2/10/25
to em...@googlegroups.com
Hello Steve,

I followed the instructions but the TIFF files that are generated do not show any particles. Onee of the images so generated is attached as an example. Any advice would be greatly appreciated. Thanks.



--

Saif


S. Saif Hasan
Urbana, Maryland, USA
WTptcls-413.tif

Steve Ludtke

unread,
Feb 10, 2025, 10:41:20 PM2/10/25
to em...@googlegroups.com
How did you display the TIFF?  Try opening the TIFF with e2display and see if it looks ok there. Some TIFF readers don't support all of the features/modes TIFF files can have. The default mode for TIFF files in EMAN2 is floating point greyscale, which preserves the original values. You can force the output mode to 8 or 16 bit integer instead, which will improve compatibility, but potentially have some data loss depending on the source.

S. Saif Hasan

unread,
Feb 11, 2025, 11:53:43 AM2/11/25
to em...@googlegroups.com
Hello Steve,

Thanks for the suggestion. e2display.py works quite well. Other software seem to be a problem. I will check with students to see if they are OK using e2display.py 


Steve Ludtke

unread,
Feb 11, 2025, 1:02:10 PM2/11/25
to em...@googlegroups.com
Hi, 
you can generate more compatible tiffs by specifying

--outmode uint8
or 
--outmode uint16

as part of the e2proc2d.py command line

S. Saif Hasan

unread,
Feb 12, 2025, 9:00:30 PM2/12/25
to em...@googlegroups.com
Hello Steve,

Thank you. This is extremely helpful. 

Does the coordinate system in eman2 start at 0,0 or 1,1, and where is this reference point located in the micrograph? The students would like to extract the particles on their own. Thank you. 

Steve Ludtke

unread,
Feb 12, 2025, 10:51:42 PM2/12/25
to em...@googlegroups.com
All indices follow python conventions (zero is the first index)

Reply all
Reply to author
Forward
0 new messages