This is a read-only mirror of pymolwiki.org

Difference between revisions of "Update"

From PyMOL Wiki
Jump to navigation Jump to search
 
m (7 revisions)
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
===DESCRIPTION===
+
'''update''' transfers coordinates from one selection to another.
  "update" transfers coordinates from one selection to another.
 
  
 
===USAGE===
 
===USAGE===
    update (target-selection),(source-selection)
+
update (target-selection),(source-selection)
+
 
 +
===PYMOL API===
 +
<source lang="python">
 +
cmd.update( target ,source [,target_state=0 [,source_state=0 [,matchmaker=1 [,quiet=1 [,_self=cmd ]]]]]] )
 +
</source>
 +
 
 +
=== ARGUMENTS ===
 +
 
 +
* '''matchmaker''' = integer: how to match atom pairs {default: 1}
 +
** 0: assume that atoms are stored in the identical order
 +
** 1: match based on all atom identifiers (segi,chain,resn,resi,name,alt)
 +
** 2: match based on ID
 +
** 3: match based on rank
 +
** 4: match based on index (same as 0 ?)
 +
 
 +
''Note that the meaning of matchmaker=0 differs in [[update]] and [[fit]] (also [[rms]], [[rms_Cur|rms_cur]], ...)!''
 +
 
 
===EXAMPLES===
 
===EXAMPLES===
    update target,(variant)
+
update target,(variant)
+
 
 
===NOTES===
 
===NOTES===
    Currently, this applies across all pairs of states.  Fine
+
Currently, this applies across all pairs of states.  Fine control will be added later.
  control will be added later.
+
 
 
 
===SEE ALSO===
 
===SEE ALSO===
    [[Cmd load]]  
+
[[Cmd load]]  
 
 
  
[[Category:Commands|load]]
+
[[Category:Commands|Update]]

Latest revision as of 01:44, 28 March 2014

update transfers coordinates from one selection to another.

USAGE

update (target-selection),(source-selection)

PYMOL API

cmd.update( target ,source [,target_state=0 [,source_state=0 [,matchmaker=1 [,quiet=1 [,_self=cmd ]]]]]] )

ARGUMENTS

  • matchmaker = integer: how to match atom pairs {default: 1}
    • 0: assume that atoms are stored in the identical order
    • 1: match based on all atom identifiers (segi,chain,resn,resi,name,alt)
    • 2: match based on ID
    • 3: match based on rank
    • 4: match based on index (same as 0 ?)

Note that the meaning of matchmaker=0 differs in update and fit (also rms, rms_cur, ...)!

EXAMPLES

update target,(variant)

NOTES

Currently, this applies across all pairs of states. Fine control will be added later.

SEE ALSO

Cmd load