Rosetta  2021.16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
core::select::residue_selector::ResidueInSequenceMotifSelector Class Reference

Select residues by motif search This selector takes a regular expression and a position and then finds all matches of the regular expression and selects the n-th residue in each match, where 'n' is the specified position. More...

#include <ResidueInSequenceMotifSelector.hh>

Inheritance diagram for core::select::residue_selector::ResidueInSequenceMotifSelector:
Inheritance graph

Public Types


Public Member Functions

 ResidueInSequenceMotifSelector ()
 Constructor. More...
 ResidueInSequenceMotifSelector (std::string regex, core::Size position_in_motif)
 Constructor for derived classes. More...
 ~ResidueInSequenceMotifSelector () 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 &) override
 XML parse. More...
std::string get_name () const override
 Get the mover class name. More...
- Public Member Functions inherited from core::select::residue_selector::ResidueSelector
 ResidueSelector ()
 Constructor. More...
 ~ResidueSelector () override
 Destructor. 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...

Protected Attributes

std::string regex_
core::Size position_in_motif_

Detailed Description

Select residues by motif search This selector takes a regular expression and a position and then finds all matches of the regular expression and selects the n-th residue in each match, where 'n' is the specified position.

Member Typedef Documentation

Constructor & Destructor Documentation

core::select::residue_selector::ResidueInSequenceMotifSelector::ResidueInSequenceMotifSelector ( )


core::select::residue_selector::ResidueInSequenceMotifSelector::ResidueInSequenceMotifSelector ( std::string  regex,
core::Size  position_in_motif 

Constructor for derived classes.

core::select::residue_selector::ResidueInSequenceMotifSelector::~ResidueInSequenceMotifSelector ( )


Member Function Documentation

ResidueInSequenceMotifSelector::ResidueSubset core::select::residue_selector::ResidueInSequenceMotifSelector::apply ( core::pose::Pose const &  pose) const

"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 position_in_motif_, regex_, core::select::residue_selector::regex_usable(), core::pose::Pose::sequence(), and core::select::residue_selector::TR().

std::string core::select::residue_selector::ResidueInSequenceMotifSelector::class_name ( )
core::select::residue_selector::ResidueSelectorOP core::select::residue_selector::ResidueInSequenceMotifSelector::clone ( ) const

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.

std::string core::select::residue_selector::ResidueInSequenceMotifSelector::get_name ( ) const

Get the mover class name.

Implements core::select::residue_selector::ResidueSelector.

References class_name().

void core::select::residue_selector::ResidueInSequenceMotifSelector::parse_my_tag ( utility::tag::TagCOP  tag,
basic::datacache::DataMap &   

XML parse.

XML tarse.

Parse RosettaScripts tags and set up this mover.

Reimplemented from core::select::residue_selector::ResidueSelector.

References protocols::pack_daemon::error_message, position_in_motif_, and regex_.

void core::select::residue_selector::ResidueInSequenceMotifSelector::provide_xml_schema ( utility::tag::XMLSchemaDefinition &  xsd)

Member Data Documentation

core::Size core::select::residue_selector::ResidueInSequenceMotifSelector::position_in_motif_

Referenced by apply(), and parse_my_tag().

std::string core::select::residue_selector::ResidueInSequenceMotifSelector::regex_

The documentation for this class was generated from the following files: