| Trees | Indices | Help |
|
|---|
|
|
object --+
|
Node.VLibNode --+
|
Supply.SupplyNode --+
|
DbMolSupplyNode
Supplies molecules from a db result set:
Sample Usage:
>>> from rdkit.Dbase.DbConnection import DbConnect
>>> dbName = os.path.join(RDConfig.RDCodeDir,'Chem','Fingerprints', 'test_data','data.gdb')
>>> conn = DbConnect(dbName,'simple_mols')
>>> dataset = conn.GetData()
>>> suppl = DbMolSupplyNode(dataset)
>>> ms = [x for x in suppl]
>>> len(ms)
12
>>> ms[0].GetProp("ID")
'ether-1'
>>> ms[10].GetProp("ID")
'acid-4'
>>> suppl.reset()
>>> suppl.next().GetProp("ID")
'ether-1'
>>> suppl.next().GetProp("ID")
'acid-1'
>>> suppl.reset()
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
x.__init__(...) initializes x; see help(type(x)) for signature
|
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 |