 |
RDKit
Open-source cheminformatics and machine learning.
|
Go to the documentation of this file.
11 #ifndef _RD_SMILESWRITE_H
12 #define _RD_SMILESWRITE_H
22 namespace SmilesWrite {
42 bool doKekule =
false,
43 const Bond *bondIn = 0,
44 bool allHsExplicit =
false,
45 bool isomericSmiles =
true);
57 const Bond *bond,
int atomToLeftIdx = -1,
bool doKekule =
false,
58 bool allBondsExplicit =
false);
76 const ROMol &mol,
bool doIsomericSmiles =
true,
bool doKekule =
false,
77 int rootedAtAtom = -1,
bool canonical =
true,
bool allBondsExplicit =
false,
78 bool allHsExplicit =
false,
bool doRandom =
false);
104 const ROMol &mol,
const std::vector<int> &atomsToUse,
105 const std::vector<int> *bondsToUse = 0,
106 const std::vector<std::string> *atomSymbols = 0,
107 const std::vector<std::string> *bondSymbols = 0,
108 bool doIsomericSmiles =
true,
bool doKekule =
false,
int rootedAtAtom = -1,
109 bool canonical =
true,
bool allBondsExplicit =
false,
110 bool allHsExplicit =
false);
127 const ROMol &mol,
bool doIsomericSmiles =
true,
bool doKekule =
false,
128 int rootedAtAtom = -1,
bool canonical =
true,
bool allBondsExplicit =
false,
129 bool allHsExplicit =
false,
bool doRandom =
false);
155 const ROMol &mol,
const std::vector<int> &atomsToUse,
156 const std::vector<int> *bondsToUse = 0,
157 const std::vector<std::string> *atomSymbols = 0,
158 const std::vector<std::string> *bondSymbols = 0,
159 bool doIsomericSmiles =
true,
bool doKekule =
false,
int rootedAtAtom = -1,
160 bool canonical =
true,
bool allBondsExplicit =
false,
161 bool allHsExplicit =
false);
RDKIT_SMILESPARSE_EXPORT std::string MolToCXSmiles(const ROMol &mol, bool doIsomericSmiles=true, bool doKekule=false, int rootedAtAtom=-1, bool canonical=true, bool allBondsExplicit=false, bool allHsExplicit=false, bool doRandom=false)
returns canonical CXSMILES for a molecule
RDKIT_SMILESPARSE_EXPORT std::string MolToSmiles(const ROMol &mol, bool doIsomericSmiles=true, bool doKekule=false, int rootedAtAtom=-1, bool canonical=true, bool allBondsExplicit=false, bool allHsExplicit=false, bool doRandom=false)
returns canonical SMILES for a molecule
class for representing a bond
RDKIT_SMILESPARSE_EXPORT std::string MolFragmentToSmiles(const ROMol &mol, const std::vector< int > &atomsToUse, const std::vector< int > *bondsToUse=0, const std::vector< std::string > *atomSymbols=0, const std::vector< std::string > *bondSymbols=0, bool doIsomericSmiles=true, bool doKekule=false, int rootedAtAtom=-1, bool canonical=true, bool allBondsExplicit=false, bool allHsExplicit=false)
returns canonical SMILES for part of a molecule
RDKIT_SMILESPARSE_EXPORT std::string GetBondSmiles(const Bond *bond, int atomToLeftIdx=-1, bool doKekule=false, bool allBondsExplicit=false)
returns the SMILES for a bond
The class for representing atoms.
RDKIT_SMILESPARSE_EXPORT std::string GetAtomSmiles(const Atom *atom, bool doKekule=false, const Bond *bondIn=0, bool allHsExplicit=false, bool isomericSmiles=true)
returns the SMILES for an atom
RDKIT_SMILESPARSE_EXPORT std::string getCXExtensions(const ROMol &mol)
returns the cxsmiles data for a molecule
RDKIT_SMILESPARSE_EXPORT std::string MolFragmentToCXSmiles(const ROMol &mol, const std::vector< int > &atomsToUse, const std::vector< int > *bondsToUse=0, const std::vector< std::string > *atomSymbols=0, const std::vector< std::string > *bondSymbols=0, bool doIsomericSmiles=true, bool doKekule=false, int rootedAtAtom=-1, bool canonical=true, bool allBondsExplicit=false, bool allHsExplicit=false)
returns canonical CXSMILES for part of a molecule
#define RDKIT_SMILESPARSE_EXPORT
RDKIT_SMILESPARSE_EXPORT bool inOrganicSubset(int atomicNumber)
returns true if the atom number is in the SMILES organic subset