Rosetta
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
core::select::residue_selector::ChainSelector Class Reference

#include <ChainSelector.hh>

Inheritance diagram for core::select::residue_selector::ChainSelector:
Inheritance graph
[legend]

Public Member Functions

 ChainSelector ()
 
 ChainSelector (ChainSelector const &src)
 Copy constructor. More...
 
 ChainSelector (std::string const &chains)
 
 ChainSelector (char chain)
 
 ChainSelector (int chainid)
 
 ChainSelector (core::Size chainid)
 
 ~ChainSelector () override
 
ResidueSelectorOP clone () const override
 Clone operator. More...
 
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
 
std::string get_name () const override
 
utility::vector1< std::string > const & chain_strings () const
 
void set_chain_strings (utility::vector1< std::string > const &)
 
- Public Member Functions inherited from core::select::residue_selector::ResidueSelector
 ResidueSelector ()
 Constructor. More...
 
 ~ResidueSelector () override
 Destructor. More...
 
utility::vector1< core::Sizeselection_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

void select_chain_by_index (core::pose::Pose const &, ResidueSubset &, core::Size) const
 
void select_chain_by_pdb_chain_char (core::pose::Pose const &, ResidueSubset &, char) const
 

Private Attributes

utility::vector1< std::string > chain_strings_
 

Constructor & Destructor Documentation

◆ ChainSelector() [1/6]

core::select::residue_selector::ChainSelector::ChainSelector ( )

◆ ChainSelector() [2/6]

core::select::residue_selector::ChainSelector::ChainSelector ( ChainSelector const &  src)

Copy constructor.

◆ ChainSelector() [3/6]

core::select::residue_selector::ChainSelector::ChainSelector ( std::string const &  chains)

◆ ChainSelector() [4/6]

core::select::residue_selector::ChainSelector::ChainSelector ( char  chain)

◆ ChainSelector() [5/6]

core::select::residue_selector::ChainSelector::ChainSelector ( int  chainid)

◆ ChainSelector() [6/6]

core::select::residue_selector::ChainSelector::ChainSelector ( core::Size  chainid)

◆ ~ChainSelector()

core::select::residue_selector::ChainSelector::~ChainSelector ( )
overridedefault

Member Function Documentation

◆ apply()

ResidueSubset core::select::residue_selector::ChainSelector::apply ( core::pose::Pose const &  pose) const
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 chain_strings_, protocols::pack_daemon::error_message, select_chain_by_index(), select_chain_by_pdb_chain_char(), and core::pose::Pose::size().

Referenced by protocols::ligand_docking::get_interface_deltas().

◆ chain_strings()

utility::vector1< std::string > const & core::select::residue_selector::ChainSelector::chain_strings ( ) const

References chain_strings_.

◆ class_name()

std::string core::select::residue_selector::ChainSelector::class_name ( )
static

◆ clone()

ResidueSelectorOP core::select::residue_selector::ChainSelector::clone ( ) const
overridevirtual

Clone operator.

Copy this object and return an owning pointer to the new object.

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

◆ get_name()

std::string core::select::residue_selector::ChainSelector::get_name ( ) const
overridevirtual

◆ parse_my_tag()

void core::select::residue_selector::ChainSelector::parse_my_tag ( utility::tag::TagCOP  tag,
basic::datacache::DataMap datamap 
)
overridevirtual

Chains are given either as single characters (matched against the chain in the input PDB) or as integers (matched against the pose-assigned index for the chain) in a comma-separated list.

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

References chain_strings_, and protocols::pack_daemon::error_message.

◆ provide_xml_schema()

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

◆ select_chain_by_index()

void core::select::residue_selector::ChainSelector::select_chain_by_index ( core::pose::Pose const &  pose,
ResidueSubset subset,
core::Size  chain_index 
) const
private

◆ select_chain_by_pdb_chain_char()

void core::select::residue_selector::ChainSelector::select_chain_by_pdb_chain_char ( core::pose::Pose const &  pose,
ResidueSubset subset,
char  ch 
) const
private

◆ set_chain_strings()

void core::select::residue_selector::ChainSelector::set_chain_strings ( utility::vector1< std::string > const &  setting)

References chain_strings_.

Member Data Documentation

◆ chain_strings_

utility::vector1< std::string > core::select::residue_selector::ChainSelector::chain_strings_
private

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