pose¶
-
class
pyrosetta.bindings.pose.
PoseResidueAccessor
(pose)¶ Bases:
object
Accessor wrapper for pose objects providing a collection-like interface.
-
pyrosetta.bindings.pose.
residue_pairs
(self, primary_residue_selector=<pyrosetta.rosetta.core.select.residue_selector.TrueResidueSelector object>, secondary_residue_selector=<pyrosetta.rosetta.core.select.residue_selector.TrueResidueSelector object>, neighborhood_distance_maximum=None, sequence_distance_minimum=None)¶ Iterate the permutations of residue pairs from two selections which are within a cartesian and/or outside a sequence distance cutoff.
The method uses the PrimarySequenceNeighborhoodSelector and NeighborhoodResidueSelector under the hood. Note that all _permutations_ of residues are yielded, not _combinations_. If you prefer combinations simply check if residue_pair[0].sequence_position() > residue_pair[1].sequence_position():.
primary_residue_selector - ResidueSelector secondary_residue_selector - ResidueSelector neighborhood_distance - float sequence_distance - int
return - iterator(tuple(Residue, Residue))