|
Rosetta
|
#include <SubstituentReplace.hh>

Public Member Functions | |
| SubstituentReplace () | |
| void | apply (core::chemical::MutableResidueType &) override |
| Modify the passed ResidueType. More... | |
| void | template_database (std::string filename, bool append=false) |
| The file which contains the templates to search for to add to input residue type. More... | |
| void | substituents_database (std::string filename, bool append=false) |
| The file which contains the substituents to add to input residue type. More... | |
| 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 Member Functions | |
| MoleculeSubstitutionOP | pick_replacement (MoleculeSubstitutionOP template_molsub, unsigned int &tdx_out) const |
Private Attributes | |
| utility::vector1< ::RDKit::ROMolOP > | templates_ |
| The templates to possibly use. More... | |
| utility::vector1< ::RDKit::ROMolOP > | substituents_ |
| 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... | |
| std::string | property_name_ |
| If not empty, pick fragments based on the weighting by the given property. More... | |
| core::chemical::VDVDMapping | mapping_ |
| protocols::drug_design::SubstituentReplace::SubstituentReplace | ( | ) |
|
overridevirtual |
Modify the passed ResidueType.
if you have a Pose, call the one which takes the Pose context
Implements protocols::chemistries::Chemistry.
References core::chemical::AtomRefMapping< FromRef, ToRef >::clear(), core::chemical::combine(), protocols::drug_design::copy_attached_atoms(), core::chemical::modifications::FAIL_DO_NOT_RETRY, core::chemical::modifications::FAIL_RETRY, core::chemical::rdkit::RDMolToRestype::generate_restype(), protocols::drug_design::get_bonded_atom(), core::chemical::rdkit::get_forcefield(), core::chemical::AtomRefMapping< FromRef, ToRef >::identity(), core::chemical::rdkit::RDMolToRestype::index_to_vd(), protocols::drug_design::AtomSubstitution::invalid_index, mapping_, core::chemical::rdkit::RestypeToRDMol::Mol(), core::chemical::ResidueTypeBase::name(), core::chemical::MutableResidueType::nbr_vertex(), protocols::drug_design::OriginalMol, pick_replacement(), protocols::drug_design::pick_template(), protocols::drug_design::ReplaceMol, core::chemical::modifications::ChemistryBase::set_last_status(), core::chemical::rdkit::RDMolToRestype::set_nbr(), substituents_, core::chemical::modifications::SUCCESS, templates_, protocols::drug_design::TR(), and core::chemical::rdkit::RestypeToRDMol::vd_to_index().
|
static |
Referenced by protocols::drug_design::SubstituentReplaceCreator::keyname(), and provide_xml_schema().
|
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_.
|
inline |
References H_as_dummy_.
Referenced by parse_my_tag().
|
inline |
Will hydrogens in the input be converted to dummy stubs?
References H_as_dummy_.
|
overridevirtual |
Initialize any data members of this instance from an input tag and a DataMap object.
Implements protocols::chemistries::Chemistry.
References H_as_dummy(), substituents_, substituents_database(), template_database(), templates_, protocols::drug_design::TR(), V_as_dummy(), and weight_by_property().
|
private |
|
static |
| void protocols::drug_design::SubstituentReplace::substituents_database | ( | std::string | filename, |
| bool | append = false |
||
| ) |
The file which contains the substituents to add to input residue type.
The file which contains the fragments to add to input residue type.
References protocols::abinitio::filename(), core::chemical::rdkit::load_sdf(), substituents_, and protocols::drug_design::TR().
Referenced by parse_my_tag().
| void protocols::drug_design::SubstituentReplace::template_database | ( | std::string | filename, |
| bool | append = false |
||
| ) |
The file which contains the templates to search for to add to input residue type.
References protocols::abinitio::filename(), protocols::drug_design::find_dummies(), core::chemical::rdkit::get_name(), H_as_dummy_, core::chemical::rdkit::load_sdf(), templates_, protocols::drug_design::TR(), and V_as_dummy_.
Referenced by parse_my_tag().
|
inline |
References V_as_dummy_.
Referenced by parse_my_tag().
|
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_.
|
inline |
References property_name_.
Referenced by parse_my_tag().
|
inline |
If not empty, use property weighting based on the given property.
References property_name_.
|
private |
Do we consider Hydrogens to be dummy atoms?
Referenced by H_as_dummy(), and template_database().
|
private |
Referenced by apply(), and get_mapping().
|
private |
If not empty, pick fragments based on the weighting by the given property.
Referenced by pick_replacement(), and weight_by_property().
|
private |
The fragments to apply.
Referenced by apply(), parse_my_tag(), pick_replacement(), and substituents_database().
|
private |
The templates to possibly use.
Referenced by apply(), parse_my_tag(), and template_database().
|
private |
Do we consider V atoms to be dummy atoms?
Referenced by template_database(), and V_as_dummy().