Pair fit: Difference between revisions
Jump to navigation
Jump to search
Hongbo zhu (talk | contribs) (add examples and notes copied from PyMOL fitting.py) |
Hongbo zhu (talk | contribs) m (correct selection macro in the 1st example) |
||
Line 9: | Line 9: | ||
<syntaxhighlight lang="python"> | <syntaxhighlight lang="python"> | ||
# superimpose protA residues 10-25 and 33-46 to protB residues 22-37 and 41-54: | # superimpose protA residues 10-25 and 33-46 to protB residues 22-37 and 41-54: | ||
pair_fit protA/10-25+33-46/CA, protB/22-37+41-54/CA | pair_fit protA///10-25+33-46/CA, protB///22-37+41-54/CA | ||
# superimpose ligA atoms C1, C2, and C4 to ligB atoms C8, C4, and C10, respectively: | # superimpose ligA atoms C1, C2, and C4 to ligB atoms C8, C4, and C10, respectively: | ||
pair_fit ligA////C1, ligB////C8, ligA////C2, ligB////C4, ligA////C3, ligB////C10 | pair_fit ligA////C1, ligB////C8, ligA////C2, ligB////C4, ligA////C3, ligB////C10 |
Revision as of 06:33, 27 May 2013
Pair_Fit fits a set of atom pairs between two models. Each atom in each pair must be specified individually, which can be tedious to enter manually. Script files are recommended when using this command.
USAGE
pair_fit (selection), (selection), [ (selection), (selection) [ ...] ]
EXAMPLES
# superimpose protA residues 10-25 and 33-46 to protB residues 22-37 and 41-54:
pair_fit protA///10-25+33-46/CA, protB///22-37+41-54/CA
# superimpose ligA atoms C1, C2, and C4 to ligB atoms C8, C4, and C10, respectively:
pair_fit ligA////C1, ligB////C8, ligA////C2, ligB////C4, ligA////C3, ligB////C10
NOTES
So long as the atoms are stored in PyMOL with the same order internally, you can provide just two selections. Otherwise, you may need to specify each pair of atoms separately, two by two, as additional arguments to pair_fit.
Script files are usually recommended when using this command.
USER EXAMPLES/COMMENTS
An description of selection caveats for these commands may be found at Intra_Rms.