RMSD with jump in one pose #83
-
I want to get RMSD between a native pose from PDB, and a pose made with AF2. The native has a jump in the middle, missing 17 residues. So When I use this code the get RMSD, it fails with the following error:
How should I get RMSD in these cases? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
RMSDMetric can take a series of ResidueSelectors (In PyRosetta it would be the If you want to calculate the rmsd over a subset of residues in the Pose(s), then you can set the residue selector to use to select the residues you want to use for the calculation. By default the selector passed to The only "trick" is that the sets of residues have to be ordered similarly in the pose (once the set of residues is selected, they're matched up one-to-one in the order in their respective poses). For example, if you have an ABCD structure and an ADBC structure, and you want to calculate the rmsd on just chains B & D, this way won't work properly. -- But in your case where you're just missing some residues but the poses are otherwise the same, things should work. |
Beta Was this translation helpful? Give feedback.
-
Thanks, Rocco.
I switched pose and native, because the native is the protein with the gap, and I could only add a second selector for the "reference" pose. The result is slightly different from pymol though (~0.01), which I don't know why yet. |
Beta Was this translation helpful? Give feedback.
RMSDMetric can take a series of ResidueSelectors (In PyRosetta it would be the
set_residue_selector()
,set_residue_selector_reference()
,set_residue_selector_super()
andset_residue_selector_super_reference()
methods.If you want to calculate the rmsd over a subset of residues in the Pose(s), then you can set the residue selector to use to select the residues you want to use for the calculation. By default the selector passed to
set_residue_selector()
is used for both the primary and the reference/native structure, but in your case I'd probably recommend setting separate residue selectors for each. (The super variants are there if you want to superimpose on a different set of residues tha…