File: AvalonTools.h

package info (click to toggle)
rdkit 201403-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 62,288 kB
  • ctags: 15,156
  • sloc: cpp: 125,376; python: 55,674; java: 4,831; ansic: 4,178; xml: 2,499; sql: 1,775; yacc: 1,551; lex: 1,051; makefile: 353; fortran: 183; sh: 148; cs: 93
file content (50 lines) | stat: -rwxr-xr-x 1,980 bytes parent folder | download
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
// $Id$
//
// Created by Greg Landrum, July 2008
//
#ifndef __AVALONTOOLS_H__
#define __AVALONTOOLS_H__
#include <string>

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

namespace AvalonTools {
  static int avalonSSSBits=0x007FFF;
  static int avalonSimilarityBits=0xF07FFF;
  std::string getCanonSmiles(RDKit::ROMol &mol,int flags=-1);
  void getAvalonFP(const RDKit::ROMol &mol,ExplicitBitVect &res,
                   unsigned int nBits=512,
                   bool isQuery=false,
                   bool resetVect=true,
                   unsigned int bitFlags=avalonSSSBits);
  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);
  unsigned int set2DCoords(RDKit::ROMol &mol,bool clearConfs=true);

  std::string getCanonSmiles(const std::string &data,bool isSmiles,int flags=-1);
  void getAvalonFP(const std::string &data,bool isSmiles,ExplicitBitVect &res,
                   unsigned int nBits=512,
                   bool isQuery=false,
                   bool resetVect=true,
                   unsigned int bitFlags=avalonSSSBits);
  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);

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

  int initCheckMol(const std::string &optString);
  RDKit::ROMOL_SPTR checkMol(int &errors, RDKit::ROMol& inMol);
  RDKit::ROMOL_SPTR checkMol(int &errors, const std::string &data, bool isSmiles);
  std::pair<std::string,int> checkMolString(const std::string &data, bool isSmiles);
  void closeCheckMolFiles();
}
#endif