File: AvalonTools.h

package info (click to toggle)
rdkit 202503.6-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 222,000 kB
  • sloc: cpp: 411,111; python: 78,482; ansic: 26,181; java: 8,285; javascript: 4,404; sql: 2,393; yacc: 1,626; lex: 1,267; cs: 1,090; makefile: 581; xml: 229; fortran: 183; sh: 121
file content (76 lines) | stat: -rw-r--r-- 3,866 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
// $Id: AvalonTools.h 1897 2011-12-23 06:17:39Z glandrum $
//
// Created by Greg Landrum, July 2008
//
#ifndef __AVALONTOOLS_H__
#define __AVALONTOOLS_H__
#include <string>

#include <RDGeneral/export.h>
#include <GraphMol/RDKitBase.h>
#include <DataStructs/ExplicitBitVect.h>
#include <DataStructs/SparseIntVect.h>
#include <vector>
#include <boost/cstdint.hpp>

namespace AvalonTools {
const int avalonSSSBits = 0x007FFF;
const int avalonSimilarityBits = 0xF07FFF;

RDKIT_AVALONLIB_EXPORT std::string getCanonSmiles(RDKit::ROMol &mol,
                                                  int flags = -1);
RDKIT_AVALONLIB_EXPORT void getAvalonCountFP(
    const RDKit::ROMol &mol, RDKit::SparseIntVect<boost::uint32_t> &res,
    unsigned int nBits = 512, bool isQuery = false, bool resetVect = true,
    unsigned int bitFlags = avalonSSSBits);
RDKIT_AVALONLIB_EXPORT void getAvalonFP(const RDKit::ROMol &mol,
                                        ExplicitBitVect &res,
                                        unsigned int nBits = 512,
                                        bool isQuery = false,
                                        bool resetVect = true,
                                        unsigned int bitFlags = avalonSSSBits);
RDKIT_AVALONLIB_EXPORT void getAvalonFP(const RDKit::ROMol &mol,
                                        std::vector<boost::uint32_t> &res,
                                        unsigned int nBits = 512,
                                        bool isQuery = false,
                                        bool resetVect = true,
                                        unsigned int bitFlags = avalonSSSBits);
RDKIT_AVALONLIB_EXPORT unsigned int set2DCoords(RDKit::ROMol &mol,
                                                bool clearConfs = true);

RDKIT_AVALONLIB_EXPORT std::string getCanonSmiles(const std::string &data,
                                                  bool isSmiles,
                                                  int flags = -1);
RDKIT_AVALONLIB_EXPORT void getAvalonCountFP(
    const std::string &data, bool isSmiles,
    RDKit::SparseIntVect<boost::uint32_t> &res, unsigned int nBits = 512,
    bool isQuery = false, unsigned int bitFlags = avalonSSSBits);
RDKIT_AVALONLIB_EXPORT void getAvalonFP(const std::string &data, bool isSmiles,
                                        ExplicitBitVect &res,
                                        unsigned int nBits = 512,
                                        bool isQuery = false,
                                        bool resetVect = true,
                                        unsigned int bitFlags = avalonSSSBits);
RDKIT_AVALONLIB_EXPORT void getAvalonFP(const std::string &data, bool isSmiles,
                                        std::vector<boost::uint32_t> &res,
                                        unsigned int nBits = 512,
                                        bool isQuery = false,
                                        bool resetVect = true,
                                        unsigned int bitFlags = avalonSSSBits);

RDKIT_AVALONLIB_EXPORT std::string set2DCoords(const std::string &data,
                                               bool isSmiles);

RDKIT_AVALONLIB_EXPORT int initCheckMol(const std::string &optString);
RDKIT_AVALONLIB_EXPORT RDKit::ROMOL_SPTR checkMol(int &errors,
                                                  RDKit::ROMol &inMol);
RDKIT_AVALONLIB_EXPORT RDKit::ROMOL_SPTR checkMol(int &errors,
                                                  const std::string &data,
                                                  bool isSmiles);
RDKIT_AVALONLIB_EXPORT std::pair<std::string, int> checkMolString(
    const std::string &data, bool isSmiles);
RDKIT_AVALONLIB_EXPORT std::string getCheckMolLog();

RDKIT_AVALONLIB_EXPORT void closeCheckMolFiles();
}  // namespace AvalonTools
#endif