29 #ifndef CDPL_BIOMOL_MOLECULARGRAPHFUNCTIONS_HPP
30 #define CDPL_BIOMOL_MOLECULARGRAPHFUNCTIONS_HPP
274 double max_dist,
bool inc_core_atoms =
false,
bool append =
false);
298 double max_dist,
bool append =
false);
335 char ins_code = 0, std::size_t model_no = 0);
Type declaration of a generic wrapper class for storing user-defined Chem::Atom 3D-coordinates functi...
Definition of the preprocessor macro CDPL_BIOMOL_API.
#define CDPL_BIOMOL_API
Tells the compiler/linker which classes, functions and variables are part of the library API.
Definition of constants in namespace CDPL::Biomol::AtomPropertyFlag.
Definition of class CDPL::Biomol::MMCIFData.
Definition of class CDPL::Biomol::PDBData.
Definition of flags for serial and residue sequence number processing.
std::shared_ptr< MMCIFData > SharedPointer
A reference-counted smart pointer [SHPTR] for dynamically allocated MMCIFData instances.
Definition: MMCIFData.hpp:58
std::shared_ptr< PDBData > SharedPointer
A reference-counted smart pointer [SHPTR] for dynamically allocated PDBData instances.
Definition: PDBData.hpp:57
Concrete Chem::MolecularGraph implementation that stores references to a selectable subset of atoms a...
Definition: Fragment.hpp:57
Abstract base class for representations of a chemical structure as a graph of bonded atoms.
Definition: MolecularGraph.hpp:57
constexpr unsigned int DEFAULT
Represents the default set of atom properties.
Definition: Biomol/AtomPropertyFlag.hpp:53
const long IGNORE_SEQUENCE_NO
Sentinel value indicating that the residue sequence number should be ignored when matching residues.
Definition: ProcessingFlags.hpp:44
CDPL_BIOMOL_API void setModelNumber(Chem::Atom &atom, std::size_t model_no)
Sets the value of the Biomol::AtomProperty::MODEL_NUMBER property of atom to model_no.
CDPL_BIOMOL_API char getResidueInsertionCode(const Chem::Atom &atom)
Returns the value of the Biomol::AtomProperty::RESIDUE_INSERTION_CODE property of atom.
CDPL_BIOMOL_API std::size_t getModelNumber(const Chem::Atom &atom)
Returns the value of the Biomol::AtomProperty::MODEL_NUMBER property of atom.
CDPL_BIOMOL_API void clearModelNumber(Chem::Atom &atom)
Removes the Biomol::AtomProperty::MODEL_NUMBER property from atom.
CDPL_BIOMOL_API void setResidueInsertionCode(Chem::Atom &atom, char code)
Sets the value of the Biomol::AtomProperty::RESIDUE_INSERTION_CODE property of atom to code.
CDPL_BIOMOL_API bool hasMMCIFData(const Chem::MolecularGraph &molgraph)
Tells whether molgraph carries an explicit Biomol::MolecularGraphProperty::MMCIF_DATA property.
CDPL_BIOMOL_API bool hasChainID(const Chem::Atom &atom)
Tells whether atom carries an explicit Biomol::AtomProperty::CHAIN_ID property.
CDPL_BIOMOL_API void clearChainID(Chem::Atom &atom)
Removes the Biomol::AtomProperty::CHAIN_ID property from atom.
CDPL_BIOMOL_API void clearPDBData(Chem::MolecularGraph &molgraph)
Removes the Biomol::MolecularGraphProperty::PDB_DATA property from molgraph.
CDPL_BIOMOL_API void clearResidueInsertionCode(Chem::Atom &atom)
Removes the Biomol::AtomProperty::RESIDUE_INSERTION_CODE property from atom.
CDPL_BIOMOL_API void clearResidueSequenceNumber(Chem::Atom &atom)
Removes the Biomol::AtomProperty::RESIDUE_SEQUENCE_NUMBER property from atom.
CDPL_BIOMOL_API long getResidueSequenceNumber(const Chem::Atom &atom)
Returns the value of the Biomol::AtomProperty::RESIDUE_SEQUENCE_NUMBER property of atom.
CDPL_BIOMOL_API bool matchesResidueInfo(const Chem::Atom &atom, const char *res_code=0, const char *chain_id=0, long res_seq_no=IGNORE_SEQUENCE_NO, char ins_code=0, std::size_t model_no=0, const char *atom_name=0, long serial_no=IGNORE_SERIAL_NO)
Tells whether the residue-identity attributes of atom match the given filter values.
CDPL_BIOMOL_API bool hasResidueCode(const Chem::Atom &atom)
Tells whether atom carries an explicit Biomol::AtomProperty::RESIDUE_CODE property.
CDPL_BIOMOL_API void extractResidueSubstructures(const Chem::MolecularGraph &molgraph, const Chem::MolecularGraph &parent_molgraph, Chem::Fragment &res_substructs, bool cnctd_only=false, unsigned int flags=AtomPropertyFlag::DEFAULT, bool append=false)
Extracts the substructures of all residues represented in molgraph from the parent macromolecular gra...
CDPL_BIOMOL_API void setResidueCode(Chem::Atom &atom, const std::string &code)
Sets the value of the Biomol::AtomProperty::RESIDUE_CODE property of atom to code.
CDPL_BIOMOL_API void extractProximalAtoms(const Chem::MolecularGraph &core, const Chem::MolecularGraph ¯omol, Chem::Fragment &env_atoms, double max_dist, bool inc_core_atoms=false, bool append=false)
Extracts the atoms of macromol that lie within max_dist of any atom of core.
CDPL_BIOMOL_API bool hasModelNumber(const Chem::Atom &atom)
Tells whether atom carries an explicit Biomol::AtomProperty::MODEL_NUMBER property.
CDPL_BIOMOL_API const std::string & getChainID(const Chem::Atom &atom)
Returns the value of the Biomol::AtomProperty::CHAIN_ID property of atom.
CDPL_BIOMOL_API void clearResidueCode(Chem::Atom &atom)
Removes the Biomol::AtomProperty::RESIDUE_CODE property from atom.
CDPL_BIOMOL_API void setHydrogenResidueSequenceInfo(Chem::MolecularGraph &molgraph, bool overwrite, unsigned int flags=AtomPropertyFlag::DEFAULT)
Copies residue-identifying properties from heavy atoms to their attached hydrogen atoms in molgraph.
CDPL_BIOMOL_API bool hasResidueInsertionCode(const Chem::Atom &atom)
Tells whether atom carries an explicit Biomol::AtomProperty::RESIDUE_INSERTION_CODE property.
CDPL_BIOMOL_API void setMMCIFData(Chem::MolecularGraph &molgraph, const MMCIFData::SharedPointer &data)
Sets the value of the Biomol::MolecularGraphProperty::MMCIF_DATA property of molgraph to data.
CDPL_BIOMOL_API void setResidueSequenceNumber(Chem::Atom &atom, long seq_no)
Sets the value of the Biomol::AtomProperty::RESIDUE_SEQUENCE_NUMBER property of atom to seq_no.
CDPL_BIOMOL_API void extractEnvironmentResidues(const Chem::MolecularGraph &core, const Chem::MolecularGraph ¯omol, Chem::Fragment &env_residues, double max_dist, bool append=false)
Extracts the residues of macromol that contain at least one atom within max_dist of any atom of core.
CDPL_BIOMOL_API const MMCIFData::SharedPointer & getMMCIFData(const Chem::MolecularGraph &molgraph)
Returns the value of the Biomol::MolecularGraphProperty::MMCIF_DATA property of molgraph.
CDPL_BIOMOL_API bool hasResidueSequenceNumber(const Chem::Atom &atom)
Tells whether atom carries an explicit Biomol::AtomProperty::RESIDUE_SEQUENCE_NUMBER property.
CDPL_BIOMOL_API bool hasPDBData(const Chem::MolecularGraph &molgraph)
Tells whether molgraph carries an explicit Biomol::MolecularGraphProperty::PDB_DATA property.
CDPL_BIOMOL_API void clearMMCIFData(Chem::MolecularGraph &molgraph)
Removes the Biomol::MolecularGraphProperty::MMCIF_DATA property from molgraph.
CDPL_BIOMOL_API void setPDBData(Chem::MolecularGraph &molgraph, const PDBData::SharedPointer &data)
Sets the value of the Biomol::MolecularGraphProperty::PDB_DATA property of molgraph to data.
CDPL_BIOMOL_API const PDBData::SharedPointer & getPDBData(const Chem::MolecularGraph &molgraph)
Returns the value of the Biomol::MolecularGraphProperty::PDB_DATA property of molgraph.
CDPL_BIOMOL_API void setChainID(Chem::Atom &atom, const std::string &id)
Sets the value of the Biomol::AtomProperty::CHAIN_ID property of atom to id.
CDPL_BIOMOL_API const std::string & getResidueCode(const Chem::Atom &atom)
Returns the value of the Biomol::AtomProperty::RESIDUE_CODE property of atom.
std::function< const Math::Vector3D &(const Chem::Atom &)> Atom3DCoordinatesFunction
Generic wrapper class used to store a user-defined Chem::Atom 3D-coordinates function.
Definition: Atom3DCoordinatesFunction.hpp:43
The namespace of the Chemical Data Processing Library.