Difference between revisions of "Matrix Copy"

From PyMOLWiki
Jump to navigation Jump to search
Line 1: Line 1:
 
+
[[Matrix_copy]] copies the [[Object_Matrix|object matrix]] from one object to another.
[[Matrix_copy]] copies a transformation matrix from one object to another.
 
  
 
This command is often used after a protein structure alignment to bring other related objects into the same frame of reference.
 
This command is often used after a protein structure alignment to bring other related objects into the same frame of reference.
Line 31: Line 30:
  
 
= See Also =
 
= See Also =
[[Matrix_reset]], [[align]], [[fit]], and [[pair_fit]].
+
[[Object_Matrix| Object Matrix]] [[Matrix_reset]], [[align]], [[fit]], and [[pair_fit]].
  
 
[[Category:Commands|Matrix copy]]
 
[[Category:Commands|Matrix copy]]
 
[[Category:Structure_Alignment|Matrix copy]]
 
[[Category:Structure_Alignment|Matrix copy]]

Revision as of 07:11, 7 September 2010

Matrix_copy copies the object matrix from one object to another.

This command is often used after a protein structure alignment to bring other related objects into the same frame of reference.

Usage

matrix_copy source_name, target_name

Example

# load two molecules
load mol1.pdb
load mol2.pdb

# load their maps
load map1.ccp4
load map2.ccp4

# align the two molecules
align mol2////CA, mol1////CA

# copy mol2's map to mol2
matrix_copy mol2, map2

# show the isomesh
isomesh mesh1, map1
isomesh mesh2, map2

See Also

Object Matrix Matrix_reset, align, fit, and pair_fit.