
4 Oct
2007
4 Oct
'07
2:37 p.m.
Hi Matt, Many Chimera commands are defined in chimera/share/Midas/__init__.py They are sometimes a pain to call from Python. Here is some code for the align command. Tom from chimera import openModels, selection m = openModels.list()[0] sel = selection.ItemizedSelection() sel.add(m.atoms[0:2]) from Midas import align align(sel) Matthew Baker wrote:
I'm writing a module. I've created a model and added it to the open models. How can I reproduce the command-line function
align #1:1 #1:2
The variable names for my two atoms are newModel.atoms[0] and newModel.atoms[1].
Thanks, Matt