[chimera-dev] adjust contour to mass

Eric Pettersen pett at cgl.ucsf.edu
Mon Nov 18 11:49:35 PST 2013


To supplement Shawn and Tom's answers, obviously it would be best if everything were documented, but in the absence of that if there is a command that implements something similar to what you want to do, you can chase it down in the code base by:

	a) looking at Midas/__init__.py and see if it's one of the functions in there (they're arranged approximately alphabetically by command name), and if it's not in there…
	b) grep share/*/ChimeraExtension.py for the command name to find which module defines the command.  Then look in that module's ChimeraExtension.py to see what file/method in the module implements the command.

--Eric

	Eric Pettersen
	UCSF Computer Graphics Lab

On Nov 18, 2013, at 9:06 AM, Shawn Waldon <swaldon at cs.unc.edu> wrote:

> Hi Martin,
> 
> I am not aware that there is a python library reference.  If there is, I would appreciate a pointer to it as well.  Here are a few links I have found helpful when writing python code for Chimera:
> 
> This shows how to execute command line commands, it may be what you want:
> http://www.cgl.ucsf.edu/chimera/data/downloads/1.8/docs/ProgrammersGuide/basicPrimer.html
> 
> This goes through how to make plugins and such, but is helpful since the examples show more of the API:
> http://www.cgl.ucsf.edu/chimera/docs/ProgrammersGuide/Examples/index.html
> 
> HTH,
> Shawn Waldon
> 
> 
> On Mon, Nov 18, 2013 at 9:10 AM, Martin Turk <turk at lmb.uni-muenchen.de> wrote:
> Hi,
> 
> I am trying to write a simple python script that will iterate over opened volumes and adjust the contour level to a certain mass. This shouldn't be more than ~10 lines. However, I can't find chimera's python library reference to look up the class structure and operator names.
> 
> Does someone know how, for example, set volume level to 0.01 would look like in python?
> in the command line it would be for all models: volume #0-99 level 0.01
> 
> for models I've found chimera.openModels and then you can list over them, but that's about it.
> 
> Thanks,
> Martin Turk
> _______________________________________________
> Chimera-dev mailing list
> Chimera-dev at cgl.ucsf.edu
> http://www.rbvi.ucsf.edu/mailman/listinfo/chimera-dev
> 
> 
> 
> -- 
> Shawn Waldon
> Graduate Research Assistant
> Department of Computer Science
> University of North Carolina at Chapel Hill
> swaldon at cs.unc.edu
> _______________________________________________
> Chimera-dev mailing list
> Chimera-dev at cgl.ucsf.edu
> http://www.rbvi.ucsf.edu/mailman/listinfo/chimera-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimera-dev/attachments/20131118/9bf2c9f6/attachment.html>


More information about the Chimera-dev mailing list