
Hi Dmitry, The data values are located only at the grid points, with integer indices. So even if you draw the box slightly different from where the grid points are, there is no data there. You can resample a map on a different grid to get values at different positions, but it is done by interpolation, which decreases resolution (loses the exact original data values). <https://rbvi.ucsf.edu/chimerax/docs/user/commands/volume.html#resample> Elaine
On Oct 25, 2023, at 12:52 PM, Dmitry Semchonok via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:
Dear Elaine and Tom,
Thank you for the new knowledge about the ChimeraX feature. It is very useful.
Using your instructions, I managed to cut the appropriate piece of the map.
Just a small additional question - when I select the box size, I want to keep it similar to the center of mass grid index. But sometimes center of mass grid index of the map does not have integer values. So, when applying the script where the numbers are not integer, e.g., volume copy #1 subregion 108,108,108.1,276,276,276.1 I am getting an error Must specify 6 comma-separated integers, got 108,108,108.1,276,276,276.1 Is there a walk-around rather than setting or removing the number after the dot?
Many thanks again!
Sincerely, Dmitry From: Tom Goddard <goddard@sonic.net> Sent: 25 October 2023 19:19 To: Dmitry Semchonok <semchonok@gmail.com> Cc: ChimeraX Users Help <chimerax-users@cgl.ucsf.edu> Subject: Re: [chimerax-users] crop the map
Hi Dmitry,
If you display only part of a map, for example by using the crop map mouse mode, or a command like volume #1 region 50,50,50,100,100,100, then if you use the ChimeraX save command it only saves that shown region.
save mappiece.mrc model #1
You don't have to specify the "region" option when saving, and you don't need to use the volume copy command to save the cropped map.
Tom
On Oct 25, 2023, at 9:34 AM, Elaine Meng via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:
Hi Dmitry, You could create a copy of the map but only a region using "volume copy" with the "subregion" option to specify grid index ranges: <https://rbvi.ucsf.edu/chimerax/docs/user/commands/volume.html#copy>
Or, to save a map file with the smaller region, the "save" command allows specifying the map "region" by grid index ranges: <https://rbvi.ucsf.edu/chimerax/docs/user/commands/save.html#map>
(The current documentation also suggests you could also use a name for the region instead of the ranges, but I suspect that it is incorrect, so disregard that part.)
If you are using the "crop" mouse mode to interactively crop the map box, look in the Log: it will show a "volume" command with the "region" giving the indices you could use in the "volume copy" or "save" command.
<https://rbvi.ucsf.edu/chimerax/docs/user/commands/volume.html#dimensions>
I hope this helps, Elaine ----- Elaine C. Meng, Ph.D. UCSF Chimera(X) team Department of Pharmaceutical Chemistry University of California, San Francisco
On Oct 25, 2023, at 8:47 AM, Dmitry Semchonok via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:
Dear colleagues,
Could you advise on how to crop the map to the new 3D box size and save those changes?
Thank you.
Sincerely, Dmitry
_______________________________________________ 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/
_______________________________________________ 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/