|
|
DbFpSupplier
new fps come back with all additional fields from the...
|
|
|
ForwardDbFpSupplier
DbFp supplier supporting only forward iteration
>>> import os.path
>>> from Dbase.DbConnection import DbConnect
>>> fName = RDConfig.RDTestDatabase
>>> conn = DbConnect(fName,'simple_combined')
>>> suppl = ForwardDbFpSupplier(conn.GetData())
we can loop over the supplied fingerprints:
>>> fps = []
>>> for fp in suppl:
...
|
|
|
RandomAccessDbFpSupplier
DbFp supplier supporting random access:
>>> import os.path
>>> from 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:
...
|