This is a read-only mirror of pymolwiki.org

Difference between revisions of "Extra fit"

From PyMOL Wiki
Jump to navigation Jump to search
(created)
 
m (1 revision)
 
(9 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{Infobox script-repo
+
[[extra_fit]] aligns multiple objects to a reference object.
|type      = module
 
|filename  = extra_fit.py
 
|author    = [[User:Speleo3|Thomas Holder]]
 
|license  = BSD-2-Clause
 
}}
 
  
'''extra_fit''' aligns multiple objects to a reference object. It can use any of PyMOL's pairwise alignment methods ([[align]], [[super]], [[cealign]], [[fit]]...). More precisely it can use any function which takes arguments '''mobile''' and '''target''', so it will for example also work with [[tmalign]]. Additional keyword arguments are passed to the used method, so you can for example adjust outlier cutoff or create an alignment object.
+
''New in PyMOL 1.7.2''
 +
 
 +
It can use any of PyMOL's pairwise alignment methods ([[align]], [[super]], [[cealign]], [[fit]]...). More precisely it can use any function which takes arguments '''mobile''' and '''target''', so it will for example also work with [[tmalign]]. Additional keyword arguments are passed to the used method, so you can for example adjust outlier cutoff or create an alignment object.
  
 
There are several similar commands/scripts for this job, like "A > align > all to this" from the PyMOL panel, the "[[alignto]]" command, [http://pldserver1.biochem.queensu.ca/~rlc/work/pymol/ align_all.py and super_all.py] scripts from Robert Campbell.
 
There are several similar commands/scripts for this job, like "A > align > all to this" from the PyMOL panel, the "[[alignto]]" command, [http://pldserver1.biochem.queensu.ca/~rlc/work/pymol/ align_all.py and super_all.py] scripts from Robert Campbell.
Line 19: Line 16:
  
 
<syntaxhighlight lang="python">
 
<syntaxhighlight lang="python">
import extra_fit
 
 
 
fetch 1e4y 1ake 4ake 3hpq, async=0
 
fetch 1e4y 1ake 4ake 3hpq, async=0
 
remove not chain A
 
remove not chain A
Line 36: Line 31:
 
== See Also ==
 
== See Also ==
  
* [[alignto]]
 
 
* [http://pldserver1.biochem.queensu.ca/~rlc/work/pymol/ align_all.py and super_all.py]
 
* [http://pldserver1.biochem.queensu.ca/~rlc/work/pymol/ align_all.py and super_all.py]
  
 
[[Category:Script Library]]
 
[[Category:Script Library]]
 
[[Category:Structure Alignment]]
 
[[Category:Structure Alignment]]
 +
[[Category:Pymol-script-repo]]

Latest revision as of 03:23, 29 April 2019

extra_fit aligns multiple objects to a reference object.

New in PyMOL 1.7.2

It can use any of PyMOL's pairwise alignment methods (align, super, cealign, fit...). More precisely it can use any function which takes arguments mobile and target, so it will for example also work with tmalign. Additional keyword arguments are passed to the used method, so you can for example adjust outlier cutoff or create an alignment object.

There are several similar commands/scripts for this job, like "A > align > all to this" from the PyMOL panel, the "alignto" command, align_all.py and super_all.py scripts from Robert Campbell.

Usage

extra_fit [ selection [, reference [, method ]]]

Example

This will align 4 structures on CA atoms using the super method. It will also create an alignment object.

fetch 1e4y 1ake 4ake 3hpq, async=0
remove not chain A

extra_fit name CA, 1ake, super, object=aln_super

Same, but with tmalign method (see TMalign)

import tmalign
extra_fit name CA, 1ake, tmalign, object=aln_tmalign

See Also