![]() |
Rosetta
2020.11
|
Public Member Functions | |
def | __init__ |
def | __len__ |
def | __iter__ |
def | __reversed__ |
def | __getitem__ |
def | __iadd__ |
def | __imul__ |
Public Attributes | |
pose | |
Accessor wrapper for pose objects providing a collection-like interface.
def pyrosetta.bindings.pose.PoseResidueAccessor.__init__ | ( | self, | |
pose | |||
) |
Referenced by pyrosetta.distributed.tasks.taskbase.TaskBase.__setstate__().
def pyrosetta.bindings.pose.PoseResidueAccessor.__getitem__ | ( | self, | |
key | |||
) |
1-based index and slice over residues. Examples: pose.residues[3], pose.residues[2:6], pose.residues[:-3], pose.residues[2:], pose.residues[-1]
References ObjexxFCL.len(), basic::options::OptionKeys::relax::range.range, and pyrosetta.bindings.utility.slice_1base_indicies().
def pyrosetta.bindings.pose.PoseResidueAccessor.__iadd__ | ( | self, | |
other | |||
) |
Short notation for appending a residue to the end of a pose by bond. If the terminal residue has Cterm variant type, the new appended residue will be transferred the variant type. If the pose is empty, the residue will be appended by jump for ease of use.
References ObjexxFCL.len(), PDB_IOBenchmark.pose, ScoreBenchmark.pose, SmallMoverBenchmark.pose, ShearMoverBenchmark.pose, and pyrosetta.bindings.pose.PoseResidueAccessor.pose.
def pyrosetta.bindings.pose.PoseResidueAccessor.__imul__ | ( | self, | |
other | |||
) |
Short notation for appending residues by jump to the terminal residue of a pose.
References pyrosetta.bindings.utility.bind_property(), and ObjexxFCL.len().
def pyrosetta.bindings.pose.PoseResidueAccessor.__iter__ | ( | self | ) |
Iterate over the residues within pose.
References ObjexxFCL.len(), and basic::options::OptionKeys::relax::range.range.
def pyrosetta.bindings.pose.PoseResidueAccessor.__len__ | ( | self | ) |
The number of residues in pose.
def pyrosetta.bindings.pose.PoseResidueAccessor.__reversed__ | ( | self | ) |
Iterate over the residues within pose in reverse order. Must provide __reversed__ as accessor object does not support 0-based indexing for the sequence protocol.
References ObjexxFCL.len(), and basic::options::OptionKeys::relax::range.range.
pyrosetta.bindings.pose.PoseResidueAccessor.pose |
Referenced by pyrosetta.bindings.pose.PoseScoreAccessor.__delitem__(), pyrosetta.bindings.pose.PoseResidueAccessor.__iadd__(), pyrosetta.bindings.pose.PoseResidueLabelAccessor.__repr__(), pyrosetta.bindings.pose.PoseScoreAccessor.__setitem__(), pyrosetta.bindings.pose.PoseScoreAccessor.all(), pyrosetta.bindings.pose.PoseScoreAccessor.clear(), pyrosetta.bindings.pose.PoseScoreAccessor.extra(), and pyrosetta.distributed.packed_pose.core.PackedPose.update_scores().