Opened 13 months ago
Closed 13 months ago
#15949 closed enhancement (fixed)
Add molmap option to create a cube shaped map
Reported by: | Owned by: | Tom Goddard | |
---|---|---|---|
Priority: | moderate | Milestone: | |
Component: | Volume Data | Version: | |
Keywords: | Cc: | ricardorighetto@…, Elaine Meng | |
Blocked By: | Blocking: | ||
Notify when closed: | Platform: | all | |
Project: | ChimeraX |
Description
From: Oliver Clarke via ChimeraX-users
Subject: [chimerax-users] Molmap default to cubic box?
Date: September 12, 2024 at 5:53:12 PM PDT
To: ChimeraX Users Help <chimerax-users@…>
Hi,
Currently, molmap defaults to creating the new map in a minimal bounding box - a minimal rectangular prism.
Most cryoEM software doesn't like rectangular prisms, and rather prefers cubes (ideally with sides that are an even number of voxels).
Would it be possible to either (a) alter molmap so it defaults to a minimal cubic box or (b) add an option to automatically resample to a cubic box of specified dimensions? Often this doesn't really matter as we have a map already loaded that we can resample on the grid of, but it would be convenient to be able to do this in a single command.
Cheers
Oli
_
Hi Oliver,
I agree. I think adding an option to molmap like "cube true" to make it add appropriate padding to make the box a cube would be the best approach. That's probably pretty easy and I'll try to add it soon. Thanks for the suggestion.
Tom
Wonderful, thanks Tom! I wonder if it would be worth considering having it default to true? Having rectangular maps does save a little bit of disk space, but for most use cases in EM at least having cubic maps is worth the tradeoff. But possibly there are more cases where having it default to a minimal bounding box is better, I don't know for sure. Thanks again
Cheers
Oli
Thanks Oli for raising this issue and Tom for the quick response!
To add to this, I think the "cube true" option (whether it's the default or not) should also default to an even box size (rounding up), since that's what most EM packages expect. Or at least add an extra option "even true", if that's more appropriate.
Best wishes,
--
Ricardo Diogo Righetto
Change History (1)
comment:1 by , 13 months ago
Cc: | added |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
Done.
Added "cube" option to molmap command (default false). If cube is true then the grid integer size will be made equal along all 3 axes and even. If cube is specified as an integer then the grid size will be that size along all 3 axes. If cube is an integer and gridSpacing is specified then the edgePadding option is ignored and the map is made with the specified grid size and grid spacing and may not cover the entire molecule.