Package rdkit :: Package Chem :: Module FastSDMolSupplier :: Class FastSDMolSupplier
[hide private]
[frames] | no frames]

Class FastSDMolSupplier

source code

object --+
         |
        FastSDMolSupplier

A wrapper around an SDMolSupplier that precomputes and stores 
molecular indices (via text processing) to allow quick length 
calculations and random access.

NOTE that this class needs to have the entire SD data in memory,
so it's probably not particularly useful with large files.

Instance Methods [hide private]
 
__init__(self, fileN=None, data=None, sanitize=True, removeHs=True)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
init(self, data, recogTxt='$$$$\n') source code
 
GetItemText(self, idx) source code
 
reset(self) source code
 
__iter__(self) source code
 
next(self) source code
 
__len__(self) source code
 
__getitem__(self, idx) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  suppl = None
hash(x)
  data = None
hash(x)
  sanitize = True
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, fileN=None, data=None, sanitize=True, removeHs=True)
(Constructor)

source code 
x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)