Rosetta
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
protocols::drug_design::SubstructureReplace Class Reference

#include <SubstructureReplace.hh>

Inheritance diagram for protocols::drug_design::SubstructureReplace:
Inheritance graph
[legend]

Public Member Functions

 SubstructureReplace ()
 
void apply (core::chemical::MutableResidueType &) override
 Modify the passed ResidueType. More...
 
void substructure_database (std::string filename, bool append=false)
 The file which contains the fragments to add to input residue type. More...
 
void distance_threshold (core::Real setting)
 The largest distance at which two dummy stubs on the fragments will be considered equivalent. More...
 
core::Real distance_threshold () const
 
void H_as_dummy (core::Real setting)
 Will hydrogens in the input be converted to dummy stubs? More...
 
bool H_as_dummy () const
 
void V_as_dummy (core::Real setting)
 Will V atoms (Vanadium, but used commonly in Rosetta for "virtual" designations) in the input be converted to dummy stubs? More...
 
bool V_as_dummy () const
 
void weight_by_property (std::string const &setting)
 If not empty, use property weighting based on the given property. More...
 
std::string const & weight_by_property () const
 
void parse_my_tag (utility::tag::TagCOP tag, basic::datacache::DataMap &datacache) override
 Initialize any data members of this instance from an input tag and a DataMap object. More...
 
core::chemical::VDVDMapping get_mapping () const override
 Get the vertex mapping that was used for the last apply() or get_additional_output() This is a mapping FROM the vds in the BEFORE MutableResidueType TO the vds in the AFTER MutableResidueType. The base class implementation defaults to an identity mapping. More...
 
- Public Member Functions inherited from protocols::chemistries::Chemistry
 Chemistry (std::string const &name)
 
virtual void apply (core::chemical::MutableResidueType &restype, core::pose::Pose const &)
 Modify the passed ResidueType, context sensitive. More...
 
- Public Member Functions inherited from core::chemical::modifications::ChemistryBase
 ChemistryBase (std::string const &name)
 
std::string name () const
 Return the name of this Chemistry object. More...
 
virtual bool has_additional_output () const
 Are there alternate ResidueTypes which are availible from the last time we called apply? (That is, will get_addtional_output() return non-null?) More...
 
virtual core::chemical::MutableResidueTypeOP get_additional_output ()
 Get additional generated ResidueTypes, if any. This allows for 1-to-many Chemistries. More...
 
ChemistryStatus get_last_status () const
 What was the status of the last call to apply()/get_additional_output() More...
 
void set_last_status (ChemistryStatus setting)
 Set the status of the chemistry object. More...
 

Static Public Member Functions

static std::string class_name ()
 
static void provide_xml_schema (utility::tag::XMLSchemaDefinition &xsd)
 

Private Attributes

utility::vector1< ::RDKit::ROMolOPsubstructures_
 The fragments to apply. More...
 
bool H_as_dummy_
 Do we consider Hydrogens to be dummy atoms? More...
 
bool V_as_dummy_
 Do we consider V atoms to be dummy atoms? More...
 
core::Real dist_threshold_
 The largest distance at which two dummy stubs on the fragments will be considered equivalent. More...
 
std::string property_name_
 If not empty, pick fragments based on the weighting by the given property. More...
 
core::chemical::VDVDMapping mapping_
 

Constructor & Destructor Documentation

◆ SubstructureReplace()

protocols::drug_design::SubstructureReplace::SubstructureReplace ( )

Member Function Documentation

◆ apply()

void protocols::drug_design::SubstructureReplace::apply ( core::chemical::MutableResidueType )
overridevirtual

◆ class_name()

std::string protocols::drug_design::SubstructureReplace::class_name ( )
static

◆ distance_threshold() [1/2]

core::Real protocols::drug_design::SubstructureReplace::distance_threshold ( ) const
inline

References dist_threshold_.

Referenced by parse_my_tag().

◆ distance_threshold() [2/2]

void protocols::drug_design::SubstructureReplace::distance_threshold ( core::Real  setting)
inline

The largest distance at which two dummy stubs on the fragments will be considered equivalent.

References dist_threshold_.

◆ get_mapping()

core::chemical::VDVDMapping protocols::drug_design::SubstructureReplace::get_mapping ( ) const
overridevirtual

Get the vertex mapping that was used for the last apply() or get_additional_output() This is a mapping FROM the vds in the BEFORE MutableResidueType TO the vds in the AFTER MutableResidueType. The base class implementation defaults to an identity mapping.

Get the vertex mapping that was used for the last apply() The base class implementation defaults to an identity mapping.

Reimplemented from core::chemical::modifications::ChemistryBase.

References mapping_.

◆ H_as_dummy() [1/2]

bool protocols::drug_design::SubstructureReplace::H_as_dummy ( ) const
inline

References H_as_dummy_.

Referenced by parse_my_tag().

◆ H_as_dummy() [2/2]

void protocols::drug_design::SubstructureReplace::H_as_dummy ( core::Real  setting)
inline

Will hydrogens in the input be converted to dummy stubs?

References H_as_dummy_.

◆ parse_my_tag()

void protocols::drug_design::SubstructureReplace::parse_my_tag ( utility::tag::TagCOP  tag,
basic::datacache::DataMap datacache 
)
overridevirtual

Initialize any data members of this instance from an input tag and a DataMap object.

Implements protocols::chemistries::Chemistry.

References distance_threshold(), H_as_dummy(), substructure_database(), V_as_dummy(), and weight_by_property().

◆ provide_xml_schema()

void protocols::drug_design::SubstructureReplace::provide_xml_schema ( utility::tag::XMLSchemaDefinition &  xsd)
static

◆ substructure_database()

void protocols::drug_design::SubstructureReplace::substructure_database ( std::string  filename,
bool  append = false 
)

◆ V_as_dummy() [1/2]

bool protocols::drug_design::SubstructureReplace::V_as_dummy ( ) const
inline

References V_as_dummy_.

Referenced by parse_my_tag().

◆ V_as_dummy() [2/2]

void protocols::drug_design::SubstructureReplace::V_as_dummy ( core::Real  setting)
inline

Will V atoms (Vanadium, but used commonly in Rosetta for "virtual" designations) in the input be converted to dummy stubs?

References V_as_dummy_.

◆ weight_by_property() [1/2]

std::string const& protocols::drug_design::SubstructureReplace::weight_by_property ( ) const
inline

References property_name_.

Referenced by parse_my_tag().

◆ weight_by_property() [2/2]

void protocols::drug_design::SubstructureReplace::weight_by_property ( std::string const &  setting)
inline

If not empty, use property weighting based on the given property.

References property_name_.

Member Data Documentation

◆ dist_threshold_

core::Real protocols::drug_design::SubstructureReplace::dist_threshold_
private

The largest distance at which two dummy stubs on the fragments will be considered equivalent.

Referenced by apply(), and distance_threshold().

◆ H_as_dummy_

bool protocols::drug_design::SubstructureReplace::H_as_dummy_
private

Do we consider Hydrogens to be dummy atoms?

Referenced by H_as_dummy(), and substructure_database().

◆ mapping_

core::chemical::VDVDMapping protocols::drug_design::SubstructureReplace::mapping_
private

Referenced by apply(), and get_mapping().

◆ property_name_

std::string protocols::drug_design::SubstructureReplace::property_name_
private

If not empty, pick fragments based on the weighting by the given property.

Referenced by apply(), and weight_by_property().

◆ substructures_

utility::vector1< ::RDKit::ROMolOP > protocols::drug_design::SubstructureReplace::substructures_
private

The fragments to apply.

Referenced by apply(), and substructure_database().

◆ V_as_dummy_

bool protocols::drug_design::SubstructureReplace::V_as_dummy_
private

Do we consider V atoms to be dummy atoms?

Referenced by substructure_database(), and V_as_dummy().


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