Rosetta
|
A ResidueSelector for carbohydrates and individual carbohydrate trees. Selects all Glycan residues if no option is given or the branch going out from the root residue. Selecting from root residues allows you to choose the whole glycan branch or only tips, etc. More...
#include <GlycanResidueSelector.hh>
Public Member Functions | |
GlycanResidueSelector () | |
Constructor. More... | |
GlycanResidueSelector (utility::vector1< bool > root_residues, bool include_root=false) | |
Constructor to select tree residues from branch roots. See set_branch_residues for more. More... | |
GlycanResidueSelector (core::Size root_residue, bool include_root=false) | |
void | set_select_from_branch_residues (utility::vector1< bool > root_residues) |
Set the residue(s) to select from. These can be the branch points of the glycans or carbohydrate residues from which to select the downstream branch from. More... | |
void | set_select_from_branch_residue (core::Size root_residue) |
Set the residue to select from. These can be the branch points of the glycans or carbohydrate residues from which to select the downstream branch from. More... | |
void | set_include_root (bool include_root) |
Option to include the root(s) we are selecting from. Default FALSE. More... | |
~GlycanResidueSelector () override | |
Destructor. More... | |
ResidueSelectorOP | clone () const override |
Clone operator. More... | |
ResidueSubset | apply (core::pose::Pose const &pose) const override |
"Apply" function. More... | |
void | parse_my_tag (utility::tag::TagCOP tag, basic::datacache::DataMap &datamap) override |
XML parse. More... | |
std::string | get_name () const override |
Get the mover class name. 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 () |
Get the mover class name. More... | |
static void | provide_xml_schema (utility::tag::XMLSchemaDefinition &xsd) |
Provide XSD information, enabling mechanical validation of input XML. More... | |
Private Attributes | |
utility::vector1< bool > | root_residues_ |
core::Size | root_residue_ |
utility::vector1< std::string > | parsed_positions_ |
std::string | ref_pose_name_ |
bool | include_root_ |
A ResidueSelector for carbohydrates and individual carbohydrate trees. Selects all Glycan residues if no option is given or the branch going out from the root residue. Selecting from root residues allows you to choose the whole glycan branch or only tips, etc.
core::select::residue_selector::GlycanResidueSelector::GlycanResidueSelector | ( | ) |
Constructor.
References include_root_, and root_residue_.
core::select::residue_selector::GlycanResidueSelector::GlycanResidueSelector | ( | utility::vector1< bool > | root_residues, |
bool | include_root = false |
||
) |
Constructor to select tree residues from branch roots. See set_branch_residues for more.
References root_residue_, and set_select_from_branch_residues().
core::select::residue_selector::GlycanResidueSelector::GlycanResidueSelector | ( | core::Size | root_residue, |
bool | include_root = false |
||
) |
References set_select_from_branch_residue().
|
overridedefault |
Destructor.
|
overridevirtual |
"Apply" function.
Given the pose, generate a vector of bools with entries for every residue in the pose indicating whether each residue is selected ("true") or not ("false").
Implements core::select::residue_selector::ResidueSelector.
References core::pose::Pose::corresponding_residue_in_current(), core::conformation::carbohydrates::get_carbohydrate_residues_of_branch(), include_root_, core::conformation::Residue::is_carbohydrate(), core::pose::parse_resnum(), parsed_positions_, ref_pose_name_, core::pose::Pose::residue(), root_residue_, root_residues_, core::pose::Pose::size(), and core::pose::Pose::total_residue().
Referenced by core::select::residue_selector::GlycanPositionSelector::apply(), and core::select::residue_selector::RandomGlycanFoliageSelector::apply().
|
static |
Get the mover class name.
Referenced by get_name(), core::select::residue_selector::GlycanResidueSelectorCreator::keyname(), and provide_xml_schema().
|
overridevirtual |
Clone operator.
Clone function.
Copy the current object (creating the copy on the heap) and return an owning pointer to the copy. All ResidueSelectors must implement this.
Copy this object and return owning pointer to the copy (created on the heap).
Implements core::select::residue_selector::ResidueSelector.
|
overridevirtual |
Get the mover class name.
Implements core::select::residue_selector::ResidueSelector.
References class_name().
|
overridevirtual |
XML parse.
Parse RosettaScripts tags and set up this mover.
Reimplemented from core::select::residue_selector::ResidueSelector.
References include_root_, parsed_positions_, and ref_pose_name_.
|
static |
Provide XSD information, enabling mechanical validation of input XML.
References class_name(), and core::select::residue_selector::xsd_type_definition_w_attributes().
Referenced by core::select::residue_selector::GlycanResidueSelectorCreator::provide_xml_schema().
void core::select::residue_selector::GlycanResidueSelector::set_include_root | ( | bool | include_root | ) |
Option to include the root(s) we are selecting from. Default FALSE.
References include_root_.
Referenced by core::select::residue_selector::RandomGlycanFoliageSelector::apply().
void core::select::residue_selector::GlycanResidueSelector::set_select_from_branch_residue | ( | core::Size | root_residue | ) |
Set the residue to select from. These can be the branch points of the glycans or carbohydrate residues from which to select the downstream branch from.
Like the rest of a tree from a particular position. That position could be the trunk or individual branches, which keep branching out.
Note that the Subset will not include the Root residue by default.
References root_residue_, and root_residues_.
Referenced by core::select::residue_selector::RandomGlycanFoliageSelector::apply(), and GlycanResidueSelector().
void core::select::residue_selector::GlycanResidueSelector::set_select_from_branch_residues | ( | utility::vector1< bool > | root_residues | ) |
Set the residue(s) to select from. These can be the branch points of the glycans or carbohydrate residues from which to select the downstream branch from.
Like the rest of a tree from a particular position. That position could be the trunk or individual branches, which keep branching out.
Note that the Subset will not include the Root residue by default.
References root_residue_, and root_residues_.
Referenced by GlycanResidueSelector().
|
private |
Referenced by apply(), GlycanResidueSelector(), parse_my_tag(), and set_include_root().
|
private |
Referenced by apply(), and parse_my_tag().
|
private |
Referenced by apply(), and parse_my_tag().
|
private |
Referenced by apply(), GlycanResidueSelector(), set_select_from_branch_residue(), and set_select_from_branch_residues().
|
private |
Referenced by apply(), set_select_from_branch_residue(), and set_select_from_branch_residues().