[Chimera-users] Setting the vertex density in a script

Hurt, Darrell (NIH/NIAID) [E] darrellh at niaid.nih.gov
Thu Jun 5 09:55:07 PDT 2014


Hi Chimera friends,

To save memory and reduce exported geometry sizes, I want to use a script to automatically scale the vertex density of generated molecular surfaces by the size of the molecule. Is there a way to grab the size (number of atoms?) of the loaded molecule(s) and use that with some simple math to set the vertex density value? I know this will reduce surface fidelity, but for very large molecules, the mesh size becomes unwieldy.

On a separate, but related note, when loading a volumetric file like electron microscopy data, the "step" size in the Volume Viewer automatically adjusts (1, 2, 4, 8, 16) to optimize visual performance and memory. I'm using a script to import volumetric data and then "Export Scene…". For that export, I want to drop down the step to the next lowest step to get a smoother mesh. I can just set the step value to the minimum with something like "volume #0 step 1 limitVoxelCount false", but this risks maxing out the memory and crashing for very large data sets. Is there a way to use a script to get the current step value and then lower by one step for my export?

Thanks,
Darrell

--
Darrell Hurt, Ph.D.
Section Head, Computational Biology
Bioinformatics and Computational Biosciences Branch (BCBB)
OCICB/OSMO/OD/NIAID/NIH

31 Center Drive, Room 3B62B, MSC 2135
Bethesda, MD 20892-2135
Office: 301-402-0095
Mobile: 301-758-3559
Web: BCBB Home Page<http://www.niaid.nih.gov/about/organization/odoffices/omo/ocicb/Pages/bcbb.aspx#niaid_inlineNav_Anchor>
Twitter: @niaidbioit<https://twitter.com/niaidbioit>

Disclaimer: The information in this e-mail and any of its attachments is confidential and may contain sensitive information. It should not be used by anyone who is not the original intended recipient. If you have received this e-mail in error please inform the sender and delete it from your mailbox or any other storage devices. National Institute of Allergy and Infectious Diseases shall not accept liability for any statements made that are sender's own and not expressly made on behalf of the NIAID by one of its representatives.




More information about the Chimera-users mailing list