Exporting box coordinates in EMAN2

614 views
Skip to first unread message

Joel Meyerson

unread,
Jan 23, 2013, 8:10:54 AM1/23/13
to em...@googlegroups.com
Hi,
I picked particles within the EMAN2 project manager and would like to export the box coordinates. I don't find an answer in the EMAN2 documentation though perhaps I'm not looking deeply enough. Can someone advise on how to do this?
Thanks as always,
Joel

Joel Meyerson

unread,
Jan 23, 2013, 8:32:17 AM1/23/13
to em...@googlegroups.com
Since posting the message I've poked around on the EMAN2 group and found a way to easily extract the particles.

From within the project directory:
e2bdb.py --dump bdb:e2boxercache#boxes > boxes.txt

If there is a better way that would still be helpful to hear.
Thanks,
Joel

Ludtke Steven

unread,
Jan 23, 2013, 8:44:29 AM1/23/13
to em...@googlegroups.com
Hi Joel. Most of the programs at least have decent parameter-level documentation. From e2boxer.py --help 

  --write_dbbox         Write coordinate file (eman1 dbbox) files

This is also available in the gui in the 'generate output' tool, as the "write_ddbox" checkbox. This will write EMAN1-style '.box' files.

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

Witchukorn Phuthong

unread,
Mar 28, 2013, 6:31:51 PM3/28/13
to em...@googlegroups.com
As a followup, are the precision of coordinates fixed to 0.5 pixel? Is there a way to make this number smaller, say 0.1 pixel?
Thanks,
Champ

Steven Ludtke

unread,
Mar 28, 2013, 7:10:12 PM3/28/13
to em...@googlegroups.com
Actually, box locations are limited to whole pixels. However, since the values are stored as a center position with a box size (to make resizing easier) you can sometimes see 0.5 values. I'm not quite sure where you are expecting sub-pixel particle picking accuracy to come from here... particle picking is often +- 5 or more pixels. Final translational alignments of the particles with respect to references are where true centering occurs. Since the particles are noisy, there really isn't any good way to accurately center most particles (other than spherical viruses) without having references...

----------------------------------------------------------------------------
Steven Ludtke, Ph.D.
Professor, Dept of Biochemistry and Mol. Biol.         (www.bcm.edu/biochem)
Co-Director National Center For Macromolecular Imaging        (ncmi.bcm.edu)
Co-Director CIBR Center                          (www.bcm.edu/research/cibr)
Baylor College of Medicine                             





--
--
----------------------------------------------------------------------------------------------
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/groups/opt_out.
 
 

Witchukorn Phuthong

unread,
Mar 29, 2013, 5:53:58 PM3/29/13
to em...@googlegroups.com
Thank you for your reply. My goal at this point is to get coordinates of the swarm-boxed particles out (may be as Joel's). With my minimal knowledge of python, I don't know where to insert the --write_dbbox and how to get x,y coordinates from the bdb file. I have been sometimes successful in doing that with e2bdb.py --dump bdb:e2boxercache#boxes > boxes.txt typed directly in terminal after interactive boxing, writing output using interactive boxing window, and generating e2box output. I found that the underlined step is needed for this command. However, today I did the exact same thing, but boxes.txt doesn't show the coordinate. 

I attach the terminal output with some highlight here as well.

I can't figure out if the wrong order that I did, how I manually select particles, how I use only swarm to select particles, how I use both to select particles or it's the bug that blocking me to obtain the coordinate in txt. I got only blank boxes.txt with the message:.#####  boxes Can you tell me what happens to e2workflow? Is there any other simple way to get coordinates in text file out?

Thanks again.
Champ
WhyBOXEsTXTnotworkH.rtf

Witchukorn Phuthong

unread,
Mar 29, 2013, 6:13:57 PM3/29/13
to em...@googlegroups.com
Somehow, after restarting the computer, it just works.
-Champ

Steven Ludtke

unread,
Mar 29, 2013, 8:03:00 PM3/29/13
to em...@googlegroups.com
:^)
Reply all
Reply to author
Forward
0 new messages