Rosetta  2020.37
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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...
 
virtual bool residue_selector_provides_citation_info () const
 Does this residue selector provide information about how to cite it? More...
 
virtual utility::vector1
< basic::citation_manager::CitationCollectionCOP > 
provide_citation_info () const
 Provide the citation. More...
 
virtual bool residue_selector_is_unpublished () const
 Does this residue selector indicate that it is unpublished (and, by extension, that the author should be included in publications resulting from it)? More...
 
virtual utility::vector1
< basic::citation_manager::UnpublishedModuleInfoCOP > 
provide_authorship_info_for_unpublished () const
 Provide a list of authors and their e-mail addresses, as strings. 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

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

Copy constructor.

core::select::residue_selector::ChainSelector::ChainSelector ( std::string const &  chains)
core::select::residue_selector::ChainSelector::ChainSelector ( char  chain)
core::select::residue_selector::ChainSelector::ChainSelector ( int  chainid)
core::select::residue_selector::ChainSelector::ChainSelector ( core::Size  chainid)
core::select::residue_selector::ChainSelector::~ChainSelector ( )
overridedefault

Member Function Documentation

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().

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

References chain_strings_.

std::string core::select::residue_selector::ChainSelector::class_name ( )
static
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.

std::string core::select::residue_selector::ChainSelector::get_name ( ) const
overridevirtual
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.

void core::select::residue_selector::ChainSelector::provide_xml_schema ( utility::tag::XMLSchemaDefinition &  xsd)
static
void core::select::residue_selector::ChainSelector::select_chain_by_index ( core::pose::Pose const &  pose,
ResidueSubset subset,
core::Size  chain_index 
) const
private
void core::select::residue_selector::ChainSelector::select_chain_by_pdb_chain_char ( core::pose::Pose const &  pose,
ResidueSubset subset,
char  ch 
) const
private
void core::select::residue_selector::ChainSelector::set_chain_strings ( utility::vector1< std::string > const &  setting)

References chain_strings_.

Member Data Documentation

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

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