perturber

Bindings for protocols::generalized_kinematic_closure::perturber namespace

class pyrosetta.rosetta.protocols.generalized_kinematic_closure.perturber.GeneralizedKICperturber

Bases: pybind11_builtins.pybind11_object

__delattr__

Implement delattr(self, name).

__dir__() → list

default dir() implementation

__eq__

Return self==value.

__format__()

default object formatter

__ge__

Return self>=value.

__getattribute__

Return getattr(self, name).

__gt__

Return self>value.

__hash__

Return hash(self).

__init__(*args, **kwargs)

Overloaded function.

  1. __init__(self: pyrosetta.rosetta.protocols.generalized_kinematic_closure.perturber.GeneralizedKICperturber) -> None
  2. __init__(self: pyrosetta.rosetta.protocols.generalized_kinematic_closure.perturber.GeneralizedKICperturber, arg0: pyrosetta.rosetta.protocols.generalized_kinematic_closure.perturber.GeneralizedKICperturber) -> None
__init_subclass__()

This method is called when a class is subclassed.

The default implementation does nothing. It may be overridden to extend subclasses.

__le__

Return self<=value.

__lt__

Return self<value.

__ne__

Return self!=value.

__new__()

Create and return a new object. See help(type) for accurate signature.

__reduce__()

helper for pickle

__reduce_ex__()

helper for pickle

__repr__

Return repr(self).

__setattr__

Implement setattr(self, name, value).

__sizeof__() → int

size of object in memory, in bytes

__str__

Return str(self).

__subclasshook__()

Abstract classes can override this to customize issubclass().

This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).

add_atom_set(self: pyrosetta.rosetta.protocols.generalized_kinematic_closure.perturber.GeneralizedKICperturber, atomset: pyrosetta.rosetta.utility.vector1_core_id_NamedAtomID) → None
Adds a set of atoms defining a bond length, bond angle, or dihedral

angle to the list of sets of atoms on which this perturber should act.

These are indices based on the original structure, NOT based on the loop to be closed. Some effects act on a list of residues, while others act on a list of atoms.

C++: protocols::generalized_kinematic_closure::perturber::GeneralizedKICperturber::add_atom_set(const class utility::vector1<class core::id::NamedAtomID, class std::allocator<class core::id::NamedAtomID> > &) –> void

add_inputvalue(self: pyrosetta.rosetta.protocols.generalized_kinematic_closure.perturber.GeneralizedKICperturber, inputvalue: float) → None

Adds a real value to the list of real input values.

C++: protocols::generalized_kinematic_closure::perturber::GeneralizedKICperturber::add_inputvalue(const double &) –> void

add_residue(self: pyrosetta.rosetta.protocols.generalized_kinematic_closure.perturber.GeneralizedKICperturber, residue_index: int) → None

Adds a residue to the list of residues on which this perturber should act.

These are indices based on the original structure, NOT based on the loop to be closed. Some effects act on a list of residues, while others act on a list of AtomIDs.

C++: protocols::generalized_kinematic_closure::perturber::GeneralizedKICperturber::add_residue(const unsigned long) –> void

apply(self: pyrosetta.rosetta.protocols.generalized_kinematic_closure.perturber.GeneralizedKICperturber, original_pose: pyrosetta.rosetta.core.pose.Pose, loop_pose: pyrosetta.rosetta.core.pose.Pose, residue_map: pyrosetta.rosetta.utility.vector1_std_pair_unsigned_long_unsigned_long_t, tail_residue_map: pyrosetta.rosetta.utility.vector1_std_pair_unsigned_long_unsigned_long_t, atomlist: pyrosetta.rosetta.utility.vector1_std_pair_core_id_AtomID_numeric_xyzVector_double_t, torsions: pyrosetta.rosetta.utility.vector1_double, bondangles: pyrosetta.rosetta.utility.vector1_double, bondlengths: pyrosetta.rosetta.utility.vector1_double) → None

Applies the perturbation to the vectors of desired torsions, desired angles, and desired bond lengths.

  • The original pose.
  • A pose consisting of just the loop to be perturbed, plus one residue on each side establishing the frame.
  • Mapping of (loop residue, original pose residue).
  • Mapping of (tail residue in loop pose, original pose tail residue).
  • List of atoms (residue indices are based on the loop_pose).
  • Desired torsions for each atom; can be set or altered by the apply() function.
  • Desired bond angles for each atom; can be set or altered by the apply() function.
  • Desired bond lengths for each atom; can be set or altered by the apply() function.

C++: protocols::generalized_kinematic_closure::perturber::GeneralizedKICperturber::apply(const class core::pose::Pose &, const class core::pose::Pose &, const class utility::vector1<struct std::pair<unsigned long, unsigned long>, class std::allocator<struct std::pair<unsigned long, unsigned long> > > &, const class utility::vector1<struct std::pair<unsigned long, unsigned long>, class std::allocator<struct std::pair<unsigned long, unsigned long> > > &, const class utility::vector1<struct std::pair<class core::id::AtomID, class numeric::xyzVector<double> >, class std::allocator<struct std::pair<class core::id::AtomID, class numeric::xyzVector<double> > > > &, class utility::vector1<double, class std::allocator<double> > &, class utility::vector1<double, class std::allocator<double> > &, class utility::vector1<double, class std::allocator<double> > &) const –> void

assign(self: pyrosetta.rosetta.protocols.generalized_kinematic_closure.perturber.GeneralizedKICperturber, : pyrosetta.rosetta.protocols.generalized_kinematic_closure.perturber.GeneralizedKICperturber) → pyrosetta.rosetta.protocols.generalized_kinematic_closure.perturber.GeneralizedKICperturber

C++: protocols::generalized_kinematic_closure::perturber::GeneralizedKICperturber::operator=(const class protocols::generalized_kinematic_closure::perturber::GeneralizedKICperturber &) –> class protocols::generalized_kinematic_closure::perturber::GeneralizedKICperturber &

attach_boinc_ghost_observer(self: pyrosetta.rosetta.protocols.generalized_kinematic_closure.perturber.GeneralizedKICperturber) → bool

Gets whether we are attaching a BOINC “ghost” pose observer.

Only does anything in the BOINC graphics build.

C++: protocols::generalized_kinematic_closure::perturber::GeneralizedKICperturber::attach_boinc_ghost_observer() const –> bool

bin(self: pyrosetta.rosetta.protocols.generalized_kinematic_closure.perturber.GeneralizedKICperturber) → str

Get the bin that the set_backbone_bin perturber will use.

C++: protocols::generalized_kinematic_closure::perturber::GeneralizedKICperturber::bin() const –> std::string

clear_residues(self: pyrosetta.rosetta.protocols.generalized_kinematic_closure.perturber.GeneralizedKICperturber) → None

Clears the residue list for this perturber

C++: protocols::generalized_kinematic_closure::perturber::GeneralizedKICperturber::clear_residues() –> void

clone(self: pyrosetta.rosetta.protocols.generalized_kinematic_closure.perturber.GeneralizedKICperturber) → pyrosetta.rosetta.protocols.generalized_kinematic_closure.perturber.GeneralizedKICperturber

C++: protocols::generalized_kinematic_closure::perturber::GeneralizedKICperturber::clone() const –> class std::shared_ptr<class protocols::generalized_kinematic_closure::perturber::GeneralizedKICperturber>

custom_rama_table(self: pyrosetta.rosetta.protocols.generalized_kinematic_closure.perturber.GeneralizedKICperturber) → pyrosetta.rosetta.core.scoring.Rama_Table_Type

Get the custom Ramachandran table (by enum) for the perturb_alpha_backbone_by_rama perturber.

C++: protocols::generalized_kinematic_closure::perturber::GeneralizedKICperturber::custom_rama_table() const –> enum core::scoring::Rama_Table_Type

define_valid_perturber_name_enumeration(xsd: pyrosetta.rosetta.utility.tag.XMLSchemaDefinition) → None

C++: protocols::generalized_kinematic_closure::perturber::GeneralizedKICperturber::define_valid_perturber_name_enumeration(class utility::tag::XMLSchemaDefinition &) –> void

get_name(self: pyrosetta.rosetta.protocols.generalized_kinematic_closure.perturber.GeneralizedKICperturber) → str

C++: protocols::generalized_kinematic_closure::perturber::GeneralizedKICperturber::get_name() const –> std::string

get_perturber_effect(self: pyrosetta.rosetta.protocols.generalized_kinematic_closure.perturber.GeneralizedKICperturber) → pyrosetta.rosetta.protocols.generalized_kinematic_closure.perturber.perturber_effect

Returns the enum type for the effect of this perturber.

C++: protocols::generalized_kinematic_closure::perturber::GeneralizedKICperturber::get_perturber_effect() const –> enum protocols::generalized_kinematic_closure::perturber::perturber_effect

get_perturber_effect_from_name(name: str) → pyrosetta.rosetta.protocols.generalized_kinematic_closure.perturber.perturber_effect
Returns the enum type for the effect of a pertuber based on a perturber name.
Returns unknown_effect if can’t find a match for the name.

C++: protocols::generalized_kinematic_closure::perturber::GeneralizedKICperturber::get_perturber_effect_from_name(const class std::basic_string<char> &) –> enum protocols::generalized_kinematic_closure::perturber::perturber_effect

get_perturber_effect_name(effect: int) → str
Returns the name of a perturber given the enum type.
Returns “unknown_effect” if no such effect exists.

C++: protocols::generalized_kinematic_closure::perturber::GeneralizedKICperturber::get_perturber_effect_name(unsigned long &) –> std::string

init_bbgmover(self: pyrosetta.rosetta.protocols.generalized_kinematic_closure.perturber.GeneralizedKICperturber, loop_pose: pyrosetta.rosetta.core.pose.Pose, residue_map: pyrosetta.rosetta.utility.vector1_std_pair_unsigned_long_unsigned_long_t) → None

C++: protocols::generalized_kinematic_closure::perturber::GeneralizedKICperturber::init_bbgmover(const class core::pose::Pose &, const class utility::vector1<struct std::pair<unsigned long, unsigned long>, class std::allocator<struct std::pair<unsigned long, unsigned long> > > &) –> void

iterations(self: pyrosetta.rosetta.protocols.generalized_kinematic_closure.perturber.GeneralizedKICperturber) → int

Return the number of iterations for this perturber

C++: protocols::generalized_kinematic_closure::perturber::GeneralizedKICperturber::iterations() const –> unsigned long

load_bin_params(self: pyrosetta.rosetta.protocols.generalized_kinematic_closure.perturber.GeneralizedKICperturber, bin_params_file: str) → None

Initializes the BinTransitionCalculator object and loads a bin_params file.

C++: protocols::generalized_kinematic_closure::perturber::GeneralizedKICperturber::load_bin_params(const class std::basic_string<char> &) –> void

must_switch_bins(self: pyrosetta.rosetta.protocols.generalized_kinematic_closure.perturber.GeneralizedKICperturber) → bool
Return whether the perturb_backbone_by_bins perturber requires residues to change their torsion
bins every move, or whether they can stay within the same bin.

C++: protocols::generalized_kinematic_closure::perturber::GeneralizedKICperturber::must_switch_bins() const –> bool

set_attach_boinc_ghost_observer(self: pyrosetta.rosetta.protocols.generalized_kinematic_closure.perturber.GeneralizedKICperturber, setting: bool) → None

Sets whether we are attaching a BOINC “ghost” pose observer.

Only does anything in the BOINC graphics build.

C++: protocols::generalized_kinematic_closure::perturber::GeneralizedKICperturber::set_attach_boinc_ghost_observer(const bool) –> void

set_bin(self: pyrosetta.rosetta.protocols.generalized_kinematic_closure.perturber.GeneralizedKICperturber, bin: str) → None

Set the bin that the set_backbone_bin perturber will use.

C++: protocols::generalized_kinematic_closure::perturber::GeneralizedKICperturber::set_bin(const class std::basic_string<char> &) –> void

set_custom_rama_table(*args, **kwargs)

Overloaded function.

  1. set_custom_rama_table(self: pyrosetta.rosetta.protocols.generalized_kinematic_closure.perturber.GeneralizedKICperturber, type: pyrosetta.rosetta.core.scoring.Rama_Table_Type) -> None

Set the custom Ramachandran table (by enum) for the perturb_alpha_backbone_by_rama perturber.

C++: protocols::generalized_kinematic_closure::perturber::GeneralizedKICperturber::set_custom_rama_table(const enum core::scoring::Rama_Table_Type) –> void

  1. set_custom_rama_table(self: pyrosetta.rosetta.protocols.generalized_kinematic_closure.perturber.GeneralizedKICperturber, name: str) -> None

Set the custom Ramachandran table (by name) for the perturb_alpha_backbone_by_rama perturber.

C++: protocols::generalized_kinematic_closure::perturber::GeneralizedKICperturber::set_custom_rama_table(const class std::basic_string<char> &) –> void

set_iterations(self: pyrosetta.rosetta.protocols.generalized_kinematic_closure.perturber.GeneralizedKICperturber, val: int) → None

Set the number of iterations for this perturber

C++: protocols::generalized_kinematic_closure::perturber::GeneralizedKICperturber::set_iterations(const unsigned long) –> void

set_must_switch_bins(self: pyrosetta.rosetta.protocols.generalized_kinematic_closure.perturber.GeneralizedKICperturber, val: bool) → None
Set whether the perturb_backbone_by_bins perturber requires residues to change their torsion
bins every move, or whether they can stay within the same bin.

C++: protocols::generalized_kinematic_closure::perturber::GeneralizedKICperturber::set_must_switch_bins(const bool) –> void

set_perturber_effect(*args, **kwargs)

Overloaded function.

  1. set_perturber_effect(self: pyrosetta.rosetta.protocols.generalized_kinematic_closure.perturber.GeneralizedKICperturber, effect: pyrosetta.rosetta.protocols.generalized_kinematic_closure.perturber.perturber_effect) -> None

Sets the effect of this perturber.

C++: protocols::generalized_kinematic_closure::perturber::GeneralizedKICperturber::set_perturber_effect(const enum protocols::generalized_kinematic_closure::perturber::perturber_effect &) –> void

  1. set_perturber_effect(self: pyrosetta.rosetta.protocols.generalized_kinematic_closure.perturber.GeneralizedKICperturber, effectname: str) -> None
Sets the effect of this perturber using the perturber effect name.
Exits with an error message if the name is unknown.

C++: protocols::generalized_kinematic_closure::perturber::GeneralizedKICperturber::set_perturber_effect(const class std::basic_string<char> &) –> void

class pyrosetta.rosetta.protocols.generalized_kinematic_closure.perturber.perturber_effect

Bases: pybind11_builtins.pybind11_object

The effect of the perturber (e.g. randomizing alpha-amino acid phi/psi angles, altering side-chains, etc.)

Perturbation effects starting with “set” set parameters to defined values (e.g. set the third phi angle
to 45 degrees). Perturbation effects starting with “randomize” set parameters based on random distributions, with no consideration of the initial value. Perturbation effects starting with “jitter” set parameters to some new value based on a random distribution about the initial value.
__delattr__

Implement delattr(self, name).

__dir__() → list

default dir() implementation

__eq__(*args, **kwargs)

Overloaded function.

  1. __eq__(self: pyrosetta.rosetta.protocols.generalized_kinematic_closure.perturber.perturber_effect, arg0: pyrosetta.rosetta.protocols.generalized_kinematic_closure.perturber.perturber_effect) -> bool
  2. __eq__(self: pyrosetta.rosetta.protocols.generalized_kinematic_closure.perturber.perturber_effect, arg0: int) -> bool
__format__()

default object formatter

__ge__

Return self>=value.

__getattribute__

Return getattr(self, name).

__getstate__(self: pyrosetta.rosetta.protocols.generalized_kinematic_closure.perturber.perturber_effect) → tuple
__gt__

Return self>value.

__hash__(self: pyrosetta.rosetta.protocols.generalized_kinematic_closure.perturber.perturber_effect) → int
__init__(self: pyrosetta.rosetta.protocols.generalized_kinematic_closure.perturber.perturber_effect, arg0: int) → None
__init_subclass__()

This method is called when a class is subclassed.

The default implementation does nothing. It may be overridden to extend subclasses.

__int__(self: pyrosetta.rosetta.protocols.generalized_kinematic_closure.perturber.perturber_effect) → int
__le__

Return self<=value.

__lt__

Return self<value.

__ne__(*args, **kwargs)

Overloaded function.

  1. __ne__(self: pyrosetta.rosetta.protocols.generalized_kinematic_closure.perturber.perturber_effect, arg0: pyrosetta.rosetta.protocols.generalized_kinematic_closure.perturber.perturber_effect) -> bool
  2. __ne__(self: pyrosetta.rosetta.protocols.generalized_kinematic_closure.perturber.perturber_effect, arg0: int) -> bool
__new__()

Create and return a new object. See help(type) for accurate signature.

__reduce__()

helper for pickle

__reduce_ex__()

helper for pickle

__repr__(self: pyrosetta.rosetta.protocols.generalized_kinematic_closure.perturber.perturber_effect) → str
__setattr__

Implement setattr(self, name, value).

__setstate__(self: pyrosetta.rosetta.protocols.generalized_kinematic_closure.perturber.perturber_effect, arg0: tuple) → None
__sizeof__() → int

size of object in memory, in bytes

__str__

Return str(self).

__subclasshook__()

Abstract classes can override this to customize issubclass().

This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).