| Trees | Indices | Help |
|
|---|
|
|
object --+
|
VLib.Node.VLibNode --+
|
DbFpSupplier --+
|
RandomAccessDbFpSupplier
DbFp supplier supporting random access: >>> import os.path >>> from rdkit.Dbase.DbConnection import DbConnect >>> fName = RDConfig.RDTestDatabase >>> conn = DbConnect(fName,'simple_combined') >>> suppl = RandomAccessDbFpSupplier(conn.GetData()) >>> len(suppl) 12 we can pull individual fingerprints: >>> fp = suppl[5] >>> fp.GetNumBits() 128 >>> fp.GetNumOnBits() 54 a standard loop over the fingerprints: >>> fps = [] >>> for fp in suppl: ... fps.append(fp) >>> len(fps) 12 or we can use an indexed loop: >>> fps = [None]*len(suppl) >>> for i in range(len(suppl)): ... fps[i] = suppl[i] >>> len(fps) 12
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
DbResults should be a subclass of Dbase.DbResultSet.DbResultBase
|
resets our iteration state
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Thu Feb 1 16:13:01 2018 | http://epydoc.sourceforge.net |