|
Rosetta
|
#include <SubstructureReplace.hh>

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::ROMolOP > | substructures_ |
| 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_ |
| protocols::drug_design::SubstructureReplace::SubstructureReplace | ( | ) |
|
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(), dist_threshold_, core::chemical::modifications::FAIL_DO_NOT_RETRY, core::chemical::modifications::FAIL_RETRY, core::chemical::rdkit::RDMolToRestype::generate_restype(), protocols::drug_design::get_bonded_atom(), protocols::drug_design::get_first_bondtype(), 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_, protocols::drug_design::AtomSubstitution::mdx(), core::chemical::rdkit::RestypeToRDMol::Mol(), core::chemical::ResidueTypeBase::name(), core::chemical::MutableResidueType::natoms(), core::chemical::MutableResidueType::nbr_vertex(), protocols::drug_design::AtomSubstitution::ndx(), protocols::drug_design::pick_replacement(), protocols::drug_design::pick_template(), property_name_, protocols::drug_design::AtomSubstitution::rdx(), protocols::forge::methods::replace(), core::chemical::modifications::ChemistryBase::set_last_status(), core::chemical::rdkit::RDMolToRestype::set_nbr(), protocols::drug_design::AtomSubstitution::set_ndx(), substructures_, core::chemical::modifications::SUCCESS, protocols::drug_design::TR(), and core::chemical::rdkit::RestypeToRDMol::vd_to_index().
|
static |
Referenced by protocols::drug_design::SubstructureReplaceCreator::keyname(), and provide_xml_schema().
|
inline |
References dist_threshold_.
Referenced by parse_my_tag().
|
inline |
The largest distance at which two dummy stubs on the fragments will be considered equivalent.
References dist_threshold_.
|
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 distance_threshold(), H_as_dummy(), substructure_database(), V_as_dummy(), and weight_by_property().
|
static |
| void protocols::drug_design::SubstructureReplace::substructure_database | ( | std::string | filename, |
| bool | append = false |
||
| ) |
The file which contains the fragments 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(), substructures_, 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 |
The largest distance at which two dummy stubs on the fragments will be considered equivalent.
Referenced by apply(), and distance_threshold().
|
private |
Do we consider Hydrogens to be dummy atoms?
Referenced by H_as_dummy(), and substructure_database().
|
private |
Referenced by apply(), and get_mapping().
|
private |
If not empty, pick fragments based on the weighting by the given property.
Referenced by apply(), and weight_by_property().
|
private |
The fragments to apply.
Referenced by apply(), and substructure_database().
|
private |
Do we consider V atoms to be dummy atoms?
Referenced by substructure_database(), and V_as_dummy().