Hi Hernando, Please see previous answer on the chimerax-users list (which mentions both Chimera and ChimeraX). <https://mail.cgl.ucsf.edu/mailman/archives/list/chimera-users@cgl.ucsf.edu/message/ADCRCKYI4IIJLY4GK6GODJA3YWRW74E6/> I should also mention you could consider drawing the region box interactively with the mouse in either program. In Chimera you could use the "Subregion selection" feature in the Volume Viewer dialog: <https://www.rbvi.ucsf.edu/chimera/docs/ContributedSoftware/volumeviewer/volumeviewer.html#mouseselect> In ChimeraX it is done with the "crop" mouse mode, which you can assign to the right mouse button by clicking the crop icon in the Right Mouse tab of the toolbar: <https://rbvi.ucsf.edu/chimerax/docs/user/tools/mousemodes.html> In ChimeraX when you crop with the mouse it will report the equivalent command in the Log, which includes the region specification. I hope this helps, Elaine ----- Elaine C. Meng, Ph.D. UCSF Chimera(X) team Resource for Biocomputing, Visualization, and Informatics Department of Pharmaceutical Chemistry University of California, San Francisco
On Jan 2, 2024, at 1:41 PM, Hernando J Sosa via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:
Dear Chimera,
I want to extract a submap around some parts of an atomic model that is aligned to the main map. For this I am using the volume region command, but I am running into a problem converting the atomic coordinates to voxel coordinates when the pixel size of the map is different from 1 and the map origin is not at 0,0,0.
What should be the right formula to go from one set the coordinates to the other and be able to get a submap in the right place?
i.e. If a sub-volume were to be extracted at coordinates x1,y1,z1 and x2,y2,z2 of the atomic model
what would be the volume coordinates to use in the command
volume #mainmap region VX1, VY1, VZ1, VX2, VY2, VZ2 assuming the map voxel size is Mapvsize and the map orig Orig is at cx,cy,cz.
To go from one set of coordinates to the other I have tried:
MapCoord = (ModelCoord - Orig) / Mapvsize
and
MapCoord = (ModelCoord /Mapvsize) - Orig
None seems to extract the volume at the right place. The first one seems closer (??)
Thanks
Hernando
_______________________________________________ ChimeraX-users mailing list -- chimerax-users@cgl.ucsf.edu To unsubscribe send an email to chimerax-users-leave@cgl.ucsf.edu Archives: https://mail.cgl.ucsf.edu/mailman/archives/list/chimerax-users@cgl.ucsf.edu/