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 Sat Apr 23 18:49:15 2016 | http://epydoc.sourceforge.net |