10 #ifndef _RD_CHEMTRANSFORMS_H__ 11 #define _RD_CHEMTRANSFORMS_H__ 13 #include <boost/smart_ptr.hpp> 36 bool onlyFrags =
false);
76 bool replaceAll =
false,
unsigned int replacementConnectionPoint = 0);
123 bool replaceDummies =
true,
bool labelByIndex =
false,
124 bool requireDummyMatch =
false);
175 ROMol &mol,
const std::map<std::string, ROMOL_SPTR> &queries,
176 const std::string &propName,
177 std::vector<std::pair<unsigned int, std::string> > *reactantLabels = NULL);
194 std::map<std::string, ROMOL_SPTR> &queryDefs,
195 bool standardize =
true,
196 const std::string &delimiter =
"\t",
197 const std::string &comment =
"//",
198 unsigned int nameColumn = 0,
199 unsigned int smartsColumn = 1);
202 std::map<std::string, ROMOL_SPTR> &queryDefs,
203 bool standardize =
true,
204 const std::string &delimiter =
"\t",
205 const std::string &comment =
"//",
206 unsigned int nameColumn = 0,
207 unsigned int smartsColumn = 1);
211 std::map<std::string, ROMOL_SPTR> &queryDefs,
212 bool standardize =
true,
213 const std::string &delimiter =
"\t",
214 const std::string &comment =
"//",
215 unsigned int nameColumn = 0,
216 unsigned int smartsColumn = 1);
ROMol * combineMols(const ROMol &mol1, const ROMol &mol2, RDGeom::Point3D offset=RDGeom::Point3D(0, 0, 0))
Combined two molecules to create a new one.
void addRecursiveQueries(ROMol &mol, const std::map< std::string, ROMOL_SPTR > &queries, const std::string &propName, std::vector< std::pair< unsigned int, std::string > > *reactantLabels=NULL)
Adds named recursive queries to a molecule's atoms based on atom.
ROMol is a molecule class that is intended to have a fixed topology.
ROMol * replaceCore(const ROMol &mol, const ROMol &coreQuery, bool replaceDummies=true, bool labelByIndex=false, bool requireDummyMatch=false)
Returns a copy of an ROMol with the atoms and bonds that do fall within a substructure match removed...
void parseQueryDefFile(const std::string &filename, std::map< std::string, ROMOL_SPTR > &queryDefs, bool standardize=true, const std::string &delimiter="\, const std::string &comment="//", unsigned int nameColumn=0, unsigned int smartsColumn=1)
parses a query definition file and sets up a set of definitions suitable for use by addRecursiveQueri...
ROMol * MurckoDecompose(const ROMol &mol)
Carries out a Murcko decomposition on the molecule provided.
ROMol * deleteSubstructs(const ROMol &mol, const ROMol &query, bool onlyFrags=false)
Returns a copy of an ROMol with the atoms and bonds that match a pattern removed. ...
boost::shared_ptr< ROMol > ROMOL_SPTR
Includes a bunch of functionality for handling Atom and Bond queries.
std::vector< ROMOL_SPTR > replaceSubstructs(const ROMol &mol, const ROMol &query, const ROMol &replacement, bool replaceAll=false, unsigned int replacementConnectionPoint=0)
Returns a list of copies of an ROMol with the atoms and bonds that match a pattern replaced with the ...
void parseQueryDefText(const std::string &queryDefText, std::map< std::string, ROMOL_SPTR > &queryDefs, bool standardize=true, const std::string &delimiter="\, const std::string &comment="//", unsigned int nameColumn=0, unsigned int smartsColumn=1)
equivalent to parseQueryDefFile() but the query definitions are
ROMol * replaceSidechains(const ROMol &mol, const ROMol &coreQuery)
Returns a copy of an ROMol with the atoms and bonds that don't fall within a substructure match remov...