Package Chem :: Package Fingerprints :: Module DbFpSupplier
[hide private]
[frames] | no frames]

Module DbFpSupplier

source code

Supplies a class for working with fingerprints from databases
#DOC 



Classes [hide private]
  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: ...
Functions [hide private]
 
warning(msg, dest=sys.stdout) source code
 
_test() source code