Rosetta
|
#include <SecondaryStructureSelector.hh>
Public Member Functions | |
SecondaryStructureSelector () | |
SecondaryStructureSelector (std::string const &selected) | |
ResidueSelectorOP | clone () const override |
Clone operator. More... | |
~SecondaryStructureSelector () override | |
ResidueSubset | apply (core::pose::Pose const &pose) const override |
Return a ResidueSubset indicating a selection of Residues from the input Pose; the ResidueSubset is an array of booleans where a value of "true" for position i indicates that residue i is a part of the selected subset – and a value of "false" would indicate that it is not. More... | |
void | parse_my_tag (utility::tag::TagCOP tag, basic::datacache::DataMap &datamap) override |
Initialize any data members of this instance from an input tag and a DataMap object. More... | |
std::string | get_name () const override |
void | set_overlap (core::Size const overlapval) |
sets number of residues around the given SS elements to select (default=0) More... | |
void | set_minH (core::Size const minHval) |
sets the minimal number of consecutive H residues to keep the secondary structure assignation (default=1) More... | |
void | set_minE (core::Size const minEval) |
sets the minimal number of consecutive E residues to keep the secondary structure assignation (default=1) More... | |
void | set_selected_ss (std::string const &selected) |
sets ss characters to select – must be set prior to apply() More... | |
void | set_include_terminal_loops (bool const inc_term) |
if true, one-residue terminal "loops" will be included (default=false) More... | |
void | set_pose_secstruct (std::string const &ss) |
Override pose secondary structure. The secondary structure set by this method will always be used if it is non-empty. More... | |
void | set_use_dssp (bool const use_dssp) |
If set, dssp will be used to determine secondary structure. Has no effect if pose_secstruct_ is set. More... | |
![]() | |
ResidueSelector () | |
Constructor. More... | |
~ResidueSelector () override | |
Destructor. More... | |
utility::vector1< core::Size > | selection_positions (core::pose::Pose const &pose) const |
Calls apply and returns the Rosetta numbering corresponding to the selected residues. More... | |
virtual void | provide_citation_info (basic::citation_manager::CitationCollectionList &) const |
Provide citations to the passed CitationCollectionList Subclasses should add the info for themselves and any other classes they use. More... | |
Static Public Member Functions | |
static std::string | class_name () |
static void | provide_xml_schema (utility::tag::XMLSchemaDefinition &xsd) |
Private Member Functions | |
std::string | get_secstruct (core::pose::Pose const &pose) const |
gets the secondary structure to be used by the selector More... | |
void | fix_secstruct_definition (std::string &ss) const |
fixes the secondary structure according to the expected minimal length of each secondary structure. More... | |
void | add_overlap (ResidueSubset &matching_ss, pose::Pose const &pose, std::string const &ss) const |
bool | check_ss (std::string const &ss) const |
Private Attributes | |
std::string | pose_secstruct_ |
core::Size | overlap_ |
core::Size | minH_ |
core::Size | minE_ |
bool | include_terminal_loops_ |
bool | use_dssp_ |
std::set< char > | selected_ss_ |
core::select::residue_selector::SecondaryStructureSelector::SecondaryStructureSelector | ( | ) |
References selected_ss_.
core::select::residue_selector::SecondaryStructureSelector::SecondaryStructureSelector | ( | std::string const & | selected | ) |
References check_ss(), and set_selected_ss().
|
overridedefault |
|
private |
References include_terminal_loops_, overlap_, core::pose::pose_residue_is_terminal(), protocols::sic_dock::range(), and core::select::residue_selector::TR().
Referenced by apply().
|
overridevirtual |
Return a ResidueSubset indicating a selection of Residues from the input Pose; the ResidueSubset is an array of booleans where a value of "true" for position i indicates that residue i is a part of the selected subset – and a value of "false" would indicate that it is not.
Implements core::select::residue_selector::ResidueSelector.
References add_overlap(), check_ss(), fix_secstruct_definition(), get_secstruct(), selected_ss_, core::pose::Pose::size(), and core::select::residue_selector::TR().
Referenced by protocols::fold_from_loops::constraint_generator::AutomaticSheetConstraintGenerator::apply().
|
private |
Referenced by apply(), parse_my_tag(), and SecondaryStructureSelector().
|
static |
|
overridevirtual |
Clone operator.
Copy this object and return an owning pointer to the new object.
Implements core::select::residue_selector::ResidueSelector.
|
private |
fixes the secondary structure according to the expected minimal length of each secondary structure.
[in] | ss | string with the secondary structure definition |
References minE_, minH_, and core::select::residue_selector::TR().
Referenced by apply().
|
overridevirtual |
Implements core::select::residue_selector::ResidueSelector.
References class_name().
|
private |
gets the secondary structure to be used by the selector
[in] | pose | Input pose |
Determines secondary structure by the following rules:
References protocols::simple_filters::dssp(), pose_secstruct_, core::pose::Pose::secstruct(), core::select::residue_selector::TR(), and use_dssp_.
Referenced by apply().
|
overridevirtual |
Initialize any data members of this instance from an input tag and a DataMap object.
Noop implementation in the base class in the case that a derived class has no need to read data from an input tag
Reimplemented from core::select::residue_selector::ResidueSelector.
References check_ss(), include_terminal_loops_, minE_, minH_, overlap_, pose_secstruct_, set_include_terminal_loops(), set_minE(), set_minH(), set_overlap(), set_pose_secstruct(), set_selected_ss(), set_use_dssp(), and use_dssp_.
|
static |
void core::select::residue_selector::SecondaryStructureSelector::set_include_terminal_loops | ( | bool const | inc_term | ) |
if true, one-residue terminal "loops" will be included (default=false)
References include_terminal_loops_.
Referenced by parse_my_tag().
void core::select::residue_selector::SecondaryStructureSelector::set_minE | ( | core::Size const | minEval | ) |
sets the minimal number of consecutive E residues to keep the secondary structure assignation (default=1)
References minE_.
Referenced by protocols::fold_from_loops::constraint_generator::AutomaticSheetConstraintGenerator::apply(), and parse_my_tag().
void core::select::residue_selector::SecondaryStructureSelector::set_minH | ( | core::Size const | minHval | ) |
sets the minimal number of consecutive H residues to keep the secondary structure assignation (default=1)
References minH_.
Referenced by parse_my_tag().
void core::select::residue_selector::SecondaryStructureSelector::set_overlap | ( | core::Size const | overlapval | ) |
sets number of residues around the given SS elements to select (default=0)
References overlap_.
Referenced by parse_my_tag().
void core::select::residue_selector::SecondaryStructureSelector::set_pose_secstruct | ( | std::string const & | ss | ) |
Override pose secondary structure. The secondary structure set by this method will always be used if it is non-empty.
References pose_secstruct_.
Referenced by parse_my_tag().
void core::select::residue_selector::SecondaryStructureSelector::set_selected_ss | ( | std::string const & | selected | ) |
sets ss characters to select – must be set prior to apply()
References selected_ss_.
Referenced by parse_my_tag(), and SecondaryStructureSelector().
void core::select::residue_selector::SecondaryStructureSelector::set_use_dssp | ( | bool const | use_dssp | ) |
If set, dssp will be used to determine secondary structure. Has no effect if pose_secstruct_ is set.
Determines secondary structure by the following rules:
References use_dssp_.
Referenced by parse_my_tag().
|
private |
Referenced by add_overlap(), parse_my_tag(), and set_include_terminal_loops().
|
private |
Referenced by fix_secstruct_definition(), parse_my_tag(), and set_minE().
|
private |
Referenced by fix_secstruct_definition(), parse_my_tag(), and set_minH().
|
private |
Referenced by add_overlap(), parse_my_tag(), and set_overlap().
|
private |
Referenced by get_secstruct(), parse_my_tag(), and set_pose_secstruct().
|
private |
Referenced by apply(), SecondaryStructureSelector(), and set_selected_ss().
|
private |
Referenced by get_secstruct(), parse_my_tag(), and set_use_dssp().