You are here

partial alignment in pyrosetta

2 posts / 0 new
Last post
partial alignment in pyrosetta
#1

Hi everybody,

can someone tell me how I get the superimpose_pose function working. It requires besides the two poses an "(object)atom_map"n specifying a set of atoms to superimpose i guess?
So, how does this object look, or how do I generate it. I would like something equal to the "structural_alignment.py" of EH Baugh (input: pose1, pose2, residues1, residues2) from the Pyrosetta site. Or does the existence of this .py tell me there is no build in function in PyRosetta that works this way?
Thanks

Post Situation: 
Thu, 2012-02-23 04:16
ast

An AtomID_Map is a C++ class (and also presumably a python class) which maps AtomIDs in one pose to AtomIDs in a second pose. Rosetta only contains coordinate alignment tools; it refuses to guess at a sequence alignment if the two poses don't match in sequence/length. The AtomID_Map is how you tell superimpose_pose which atoms correspond.

Intializing an AtomID_Map is generally done with a loop over the two proteins that will fill the map. There are some partially automatic initializers in core/pose/util.hh (like initialise_atomid_map, etc). These still require you to fill in the second half of the map yourself (the IDs of the second pose).

If you have two poses of the same protein, you can try calpha_superimpose_pose instead - it will autogenerate the AtomID map. The C++ files src/core/scoring/rms_util.* contain most of the functions related to this.

You can also just use Evan's code from the script you mentioned.

Thu, 2012-02-23 08:25
smlewis