Trees | Indices | Help |
|
---|
|
object --+ | Node.VLibNode --+ | Output.OutputNode --+ | OutputNode
dumps smiles output Assumptions: - destination supports a write() method - inputs (parents) can be stepped through in lockstep Usage Example: >>> smis = ['C1CCC1','C1CC1','C=O','NCC'] >>> mols = [Chem.MolFromSmiles(x) for x in smis] >>> from rdkit.VLib.Supply import SupplyNode >>> suppl = SupplyNode(contents=mols) >>> import StringIO >>> io = StringIO.StringIO() >>> node = OutputNode(dest=io,delim=', ') >>> node.AddParent(suppl) >>> ms = [x for x in node] >>> len(ms) 4 >>> txt = io.getvalue() >>> repr(txt) "'1, C1CCC1\\n2, C1CC1\\n3, C=O\\n4, CCN\\n'"
|
|||
|
|||
|
|||
|
|||
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 Sat Apr 23 18:49:15 2016 | http://epydoc.sourceforge.net |