|
Rosetta
|
A class representing a substitution of a molecule from an original molecule through a pair of matched templates to a substituted molecule. More...
#include <substitution_support.hh>
Public Member Functions | |
| MoleculeSubstitution () | |
| MoleculeSubstitution (::RDKit::ROMolOP mol) | |
| Construct a MoleculeSubstitution from an RDKit molecule (The source molecule.) More... | |
| void | add_template (::RDKit::ROMolOP templt, ::RDKit::MatchVectType const &pairings) |
| Add a template to this MoleculeSubstitution. More... | |
| ::RDKit::MatchVectType | make_match_vector () const |
| Reconstitute the original pairings. This is a vector of pairs of (tdx, mdx) More... | |
| core::chemical::IndexIndexMapping | find_mdx_to_ndx_mapping () const |
| Create a mapping from mdx to ndx. More... | |
| MoleculeSubstitutionOP | add_replacement (::RDKit::ROMolOP replacement, std::map< unsigned int, unsigned int > &r_to_t_mapping) const |
| Make a new MoleculeSubstitution class with the replacement information. More... | |
| void | add_newmol (::RDKit::RWMolOP newmol) |
| ::RDKit::ROMolOP | get_romol (MoleculeSelection sele) |
| ::RDKit::ROMolOP | mol () |
| ::RDKit::ROMolOP | templt () |
| ::RDKit::ROMolOP | replace () |
| ::RDKit::RWMolOP | newmol () |
| AtomSubstitution & | substitution_for_idx (MoleculeSelection sele, unsigned int idx) |
| AtomSubstitution & | substitution_for_mdx (unsigned int idx) |
| AtomSubstitution & | substitution_for_tdx (unsigned int idx) |
| AtomSubstitution & | substitution_for_rdx (unsigned int idx) |
| bool | tdx_is_dummy (unsigned int tdx) const |
| bool | rdx_is_dummy (unsigned int rdx) const |
| utility::vector1< unsigned int > const & | template_dummies () const |
| The indexes for dummy atoms on the matching template. More... | |
| utility::vector1< unsigned int > const & | replace_dummies () const |
| The indexes for dummy atoms on the replacement template. More... | |
Private Attributes | |
| ::RDKit::ROMolOP | mol_ |
| ::RDKit::ROMolOP | templt_ |
| ::RDKit::ROMolOP | replace_ |
| ::RDKit::RWMolOP | newmol_ |
| std::map< unsigned int, AtomSubstitutionOP > | by_mdx_ |
| std::map< unsigned int, AtomSubstitutionOP > | by_tdx_ |
| std::map< unsigned int, AtomSubstitutionOP > | by_rdx_ |
| utility::vector1< unsigned int > | template_dummies_ |
| What idx's correspond to dummy atoms? More... | |
| utility::vector1< unsigned int > | replace_dummies_ |
| utility::vector1< AtomSubstitutionOP > | atom_substitutions_ |
| Storage for the individual atom substitutions. More... | |
A class representing a substitution of a molecule from an original molecule through a pair of matched templates to a substituted molecule.
The MoleculeSubstitution can be made progressively from molecule outwards. It should contain an indexed entry for each item in all four molecules (At least for those molecules which it's currently aware of.)
|
inline |
| protocols::drug_design::MoleculeSubstitution::MoleculeSubstitution | ( | ::RDKit::ROMolOP | mol | ) |
Construct a MoleculeSubstitution from an RDKit molecule (The source molecule.)
References atom_substitutions_, by_mdx_, and mol().
|
inline |
| MoleculeSubstitutionOP protocols::drug_design::MoleculeSubstitution::add_replacement | ( | ::RDKit::ROMolOP | replacement, |
| std::map< unsigned int, unsigned int > & | r_to_t_mapping | ||
| ) | const |
Make a new MoleculeSubstitution class with the replacement information.
Make a new AtomSubstitution class with the replacement information.
Assumes that the new (post-replacement) molecule hasn't been set.
References atom_substitutions_, protocols::drug_design::find_dummies(), mol_, template_dummies_, and templt_.
| void protocols::drug_design::MoleculeSubstitution::add_template | ( | ::RDKit::ROMolOP | templt, |
| ::RDKit::MatchVectType const & | pairings | ||
| ) |
Add a template to this MoleculeSubstitution.
References by_mdx_, by_tdx_, protocols::drug_design::find_dummies(), template_dummies_, templt(), and templt_.
| core::chemical::IndexIndexMapping protocols::drug_design::MoleculeSubstitution::find_mdx_to_ndx_mapping | ( | ) | const |
Create a mapping from mdx to ndx.
References atom_substitutions_, and protocols::drug_design::AtomSubstitution::invalid_index.
| RDKit::ROMolOP protocols::drug_design::MoleculeSubstitution::get_romol | ( | MoleculeSelection | sele | ) |
| RDKit::MatchVectType protocols::drug_design::MoleculeSubstitution::make_match_vector | ( | ) | const |
Reconstitute the original pairings. This is a vector of pairs of (tdx, mdx)
References atom_substitutions_, and protocols::drug_design::AtomSubstitution::invalid_index.
|
inline |
References mol_.
Referenced by get_romol(), and MoleculeSubstitution().
|
inline |
References newmol_.
Referenced by add_newmol(), and protocols::drug_design::copy_attached_atoms().
| bool protocols::drug_design::MoleculeSubstitution::rdx_is_dummy | ( | unsigned int | rdx | ) | const |
References protocols::drug_design::is_dummy(), and replace_.
|
inline |
References replace_.
Referenced by get_romol().
|
inline |
The indexes for dummy atoms on the replacement template.
References replace_dummies_.
| AtomSubstitution & protocols::drug_design::MoleculeSubstitution::substitution_for_idx | ( | MoleculeSelection | sele, |
| unsigned int | idx | ||
| ) |
| AtomSubstitution & protocols::drug_design::MoleculeSubstitution::substitution_for_mdx | ( | unsigned int | idx | ) |
References by_mdx_.
Referenced by substitution_for_idx().
| AtomSubstitution & protocols::drug_design::MoleculeSubstitution::substitution_for_rdx | ( | unsigned int | idx | ) |
References by_rdx_.
Referenced by substitution_for_idx().
| AtomSubstitution & protocols::drug_design::MoleculeSubstitution::substitution_for_tdx | ( | unsigned int | idx | ) |
References by_tdx_.
Referenced by substitution_for_idx().
| bool protocols::drug_design::MoleculeSubstitution::tdx_is_dummy | ( | unsigned int | tdx | ) | const |
References protocols::drug_design::is_dummy(), and templt_.
|
inline |
The indexes for dummy atoms on the matching template.
References template_dummies_.
|
inline |
References templt_.
Referenced by add_template(), and get_romol().
|
private |
Storage for the individual atom substitutions.
Referenced by add_replacement(), find_mdx_to_ndx_mapping(), make_match_vector(), and MoleculeSubstitution().
|
private |
Referenced by add_template(), MoleculeSubstitution(), and substitution_for_mdx().
|
private |
Referenced by substitution_for_rdx().
|
private |
Referenced by add_template(), and substitution_for_tdx().
|
private |
Referenced by add_replacement(), and mol().
|
private |
Referenced by add_newmol(), and newmol().
|
private |
Referenced by rdx_is_dummy(), and replace().
|
private |
Referenced by replace_dummies().
|
private |
What idx's correspond to dummy atoms?
Referenced by add_replacement(), add_template(), and template_dummies().
|
private |
Referenced by add_replacement(), add_template(), tdx_is_dummy(), and templt().