10 #ifndef _RD_FILEPARSERS_H 11 #define _RD_FILEPARSERS_H 21 #include <boost/shared_ptr.hpp> 25 std::string
strip(
const std::string &orig);
45 bool sanitize =
true,
bool removeHs =
true,
46 bool strictParsing =
true);
49 bool sanitize =
true,
bool removeHs =
true,
50 bool strictParsing =
true);
62 bool removeHs =
true,
bool strictParsing =
true);
75 bool removeHs =
true,
bool strictParsing =
true);
89 int confId = -1,
bool kekulize =
true,
90 bool forceV3000 =
false);
104 bool includeStereo =
true,
int confId = -1,
105 bool kekulize =
true,
bool forceV3000 =
false);
128 bool sanitize =
true,
bool skipFirstConf =
false);
146 bool skipFirstConf =
false);
149 const ROMol &mol,
const std::string &partialChargeProp =
"_GasteigerCharge",
150 bool writeFirstConfTwice =
false);
152 const std::string &partialChargeProp =
"_GasteigerCharge",
153 bool writeFirstConfTwice =
false);
201 bool removeHs =
true,
unsigned int flavor = 0);
204 bool removeHs =
true,
unsigned int flavor = 0);
206 bool removeHs =
true,
unsigned int flavor = 0);
208 bool removeHs =
true,
unsigned int flavor = 0);
210 bool removeHs =
true,
unsigned int flavor = 0);
225 unsigned int flavor = 0);
240 unsigned int flavor = 0);
void MolToMolFile(const ROMol &mol, const std::string &fName, bool includeStereo=true, int confId=-1, bool kekulize=true, bool forceV3000=false)
RWMol * Mol2FileToMol(const std::string &fName, bool sanitize=true, bool removeHs=true, Mol2Type variant=CORINA)
std::vector< RWMOL_SPTR > RWMOL_SPTR_VECT
RWMol * PDBDataStreamToMol(std::istream *inStream, bool sanitize=true, bool removeHs=true, unsigned int flavor=0)
RWMol * PDBBlockToMol(const char *str, bool sanitize=true, bool removeHs=true, unsigned int flavor=0)
ROMol * removeHs(const ROMol &mol, bool implicitOnly=false, bool updateExplicitCount=false, bool sanitize=true)
returns a copy of a molecule with hydrogens removed
RWMol * Mol2DataStreamToMol(std::istream *inStream, bool sanitize=true, bool removeHs=true, Mol2Type variant=CORINA)
const int MOLFILE_MAXLINE
RWMol is a molecule class that is intended to be edited.
RWMol * MolDataStreamToMol(std::istream *inStream, unsigned int &line, bool sanitize=true, bool removeHs=true, bool strictParsing=true)
RWMol * MolFileToMol(const std::string &fName, bool sanitize=true, bool removeHs=true, bool strictParsing=true)
RWMol * TPLFileToMol(const std::string &fName, bool sanitize=true, bool skipFirstConf=false)
construct a multi-conf molecule from a TPL (BioCad format) file
std::string MolToMolBlock(const ROMol &mol, bool includeStereo=true, int confId=-1, bool kekulize=true, bool forceV3000=false)
pulls in the core RDKit functionality
ROMol is a molecule class that is intended to have a fixed topology.
void MolToPDBFile(const ROMol &mol, const std::string &fname, int confId=-1, unsigned int flavor=0)
std::string strip(const std::string &orig)
RWMol * Mol2BlockToMol(const std::string &molBlock, bool sanitize=true, bool removeHs=true, Mol2Type variant=CORINA)
std::string MolToPDBBlock(const ROMol &mol, int confId=-1, unsigned int flavor=0)
std::string MolToTPLText(const ROMol &mol, const std::string &partialChargeProp="_GasteigerCharge", bool writeFirstConfTwice=false)
RWMol * TPLDataStreamToMol(std::istream *inStream, unsigned int &line, bool sanitize=true, bool skipFirstConf=false)
translate TPL data (BioCad format) into a multi-conf molecule
RWMol * PDBFileToMol(const std::string &fname, bool sanitize=true, bool removeHs=true, unsigned int flavor=0)
RWMol * MolBlockToMol(const std::string &molBlock, bool sanitize=true, bool removeHs=true, bool strictParsing=true)
void MolToTPLFile(const ROMol &mol, const std::string &fName, const std::string &partialChargeProp="_GasteigerCharge", bool writeFirstConfTwice=false)