Rosetta  2020.50
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
core::chemical::rdkit::RestypeToRDMol Class Reference

#include <RestypeToRDMol.hh>

Public Member Functions

 RestypeToRDMol (MutableResidueType const &res, bool neutralize=true, bool keep_hydro=false)
 Convert ResidueType to an RDKit RWMol object. More...
 
VDIndexMapping const & vd_to_index () const
 Return the corespondance from the input ResidueType VD to the RDKit atom index. More...
 
::RDKit::RWMOL_SPTR Mol ()
 Return an RDKit RWMol object which represents the residue type. More...
 

Private Member Functions

 RestypeToRDMol ()
 

Private Attributes

MutableResidueType const & res_
 
bool neutralize_
 
bool keep_hydro_
 
VDIndexMapping vd_to_index_
 Mapping of restype vertex descriptors to indices of the rdkit object. More...
 

Constructor & Destructor Documentation

core::chemical::rdkit::RestypeToRDMol::RestypeToRDMol ( MutableResidueType const &  res,
bool  neutralize = true,
bool  keep_hydro = false 
)

Convert ResidueType to an RDKit RWMol object.

If neutralize is true, attempt to reprotonate into a neutral (non-formally charged) molecule. (Charges due to heavy atoms, like quaternary amines, will still be present.)

If keep_hydro is true, represent hydrogens as physical atoms, rather than "explicit" annotations (see below).

Note that due to implementation details, "neutralize = true" will not play well with "keep_hydro = true".

RDKit is "aware" of three types of hydrogens.

1) Physical hydrogens: actual atoms in the atom graph and can have coordinates. 2) "Explicit" hydrogens: don't have existence in the atom graph or coordinates, but are instead represented by a field on the heavy atom ("This atom has 3 hydrogens attached to it") 3) "Implicit" hydrogens: aren't annotated anywhere, but instead are implied by the difference in the expected valence of the heavy atom and the number of valences which are currently occupied by bonds and/or "explicit" hydrogens.

Most of RDKit is written around the assumption of non-physical hydrogens, the exception being things like energy minimization which needs coordinates. On the other hand, "implicit" hydrogens cause issues in certain cases with kekulization. Because of this, the default conversion here is to remove the physical hydrogens, and replace them with "explicit" hydrogen annotations.

Much of RDKit (especially the metric calculations) assumes neutral protonation. (e.g. what you'd see in an aprotic organic solvent), which is why we neutralize the residues by default.

References keep_hydro_, and neutralize_.

core::chemical::rdkit::RestypeToRDMol::RestypeToRDMol ( )
private

Member Function Documentation

RDKit::RWMOL_SPTR core::chemical::rdkit::RestypeToRDMol::Mol ( )
VDIndexMapping const& core::chemical::rdkit::RestypeToRDMol::vd_to_index ( ) const
inline

Return the corespondance from the input ResidueType VD to the RDKit atom index.

References vd_to_index_.

Member Data Documentation

bool core::chemical::rdkit::RestypeToRDMol::keep_hydro_
private

Referenced by Mol(), and RestypeToRDMol().

bool core::chemical::rdkit::RestypeToRDMol::neutralize_
private

Referenced by Mol(), and RestypeToRDMol().

MutableResidueType const& core::chemical::rdkit::RestypeToRDMol::res_
private

Referenced by Mol().

VDIndexMapping core::chemical::rdkit::RestypeToRDMol::vd_to_index_
private

Mapping of restype vertex descriptors to indices of the rdkit object.

Referenced by Mol(), and vd_to_index().


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