RDKit
Open-source cheminformatics and machine learning.
TautomerCatalogUtils.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2018 Susan H. Leung
3 //
4 // @@ All Rights Reserved @@
5 // This file is part of the RDKit.
6 // The contents are covered by the terms of the BSD license
7 // which is included in the file license.txt, found at the root
8 // of the RDKit source tree.
9 //
10 #include <RDGeneral/export.h>
11 #ifndef __RD_TAUTOMER_CATALOG_UTILS_H__
12 #define __RD_TAUTOMER_CATALOG_UTILS_H__
13 
14 #include <GraphMol/RDKitBase.h>
15 #include "TautomerCatalogParams.h"
18 #include <GraphMol/Bond.h>
19 #include <iostream>
20 
21 namespace RDKit {
22 class ROMol;
23 
24 namespace MolStandardize {
25 class TautomerCatalogParams;
26 
27 // typedef enum {
28 // SINGLE,
29 // DOUBLE,
30 // TRIPLE,
31 // AROMATIC,
32 //} BondType;
33 
34 // typedef std::vector<ROMol*, std::string, std::string> tautomerTransform;
37  std::vector<Bond::BondType> BondTypes;
38  std::vector<int> Charges;
39  TautomerTransform(ROMol* mol, std::vector<Bond::BondType> bondtypes,
40  std::vector<int> charges)
41  : Mol(mol), BondTypes(bondtypes), Charges(charges) {}
42 };
43 
44 RDKIT_MOLSTANDARDIZE_EXPORT std::vector<Bond::BondType> stringToBondType(
45  std::string bond_str);
47  std::string charge_str);
48 
49 RDKIT_MOLSTANDARDIZE_EXPORT std::vector<TautomerTransform> readTautomers(
50  std::string fileName);
51 RDKIT_MOLSTANDARDIZE_EXPORT std::vector<TautomerTransform> readTautomers(
52  std::istream& inStream, int nToRead = -1);
53 
54 } // namespace MolStandardize
55 } // namespace RDKit
56 
57 #endif
RDKIT_MOLSTANDARDIZE_EXPORT std::vector< TautomerTransform > readTautomers(std::string fileName)
RDKIT_MOLSTANDARDIZE_EXPORT std::vector< Bond::BondType > stringToBondType(std::string bond_str)
pulls in the core RDKit functionality
Std stuff.
Definition: Atom.h:30
TautomerTransform(ROMol *mol, std::vector< Bond::BondType > bondtypes, std::vector< int > charges)
std::vector< Bond::BondType > BondTypes
#define RDKIT_MOLSTANDARDIZE_EXPORT
Definition: export.h:424
RDKIT_MOLSTANDARDIZE_EXPORT std::vector< int > stringToCharge(std::string charge_str)