Package CHEM :: Package Kernel :: Module RandomOrderAtoms :: Class RandomOrderAtoms
[hide private]
[frames] | no frames]

Class RandomOrderAtoms



Reads a molecule file and outputs multiple different, but equivalent, SMILES strings for each.

Expect to also have a matching "target" file for use in machine-learning. That is, each line in the target file has some annotation which indicates some property about the respective molecule in the molecule file. Thus, in addition to generating more SMILES, generate a new target file of the expanded length with respective target values.

Instance Methods [hide private]
 
__init__(self, nVariants)
 
generateVariantsByFilename(self, molIFilename, targetIFilename, molOFilename, targetOFilename)
Just open file inputs and outputs and delegate to generateVariants.
 
generateVariants(self, moleculeOEIS, targetIFile, moleculeOEOS, targetOFile)
 
generateMolVariants(self, mol, molOEOS, numVar=None)
 
shuffleList(self, aList)
Randomly reorders the elements of the list
Class Variables [hide private]
  nVariants = -1
Random number generator to enable shuffling
  randomSource = <CHEM.DB.rdb.search.NameRxnPatternMatchingModel...
Class Variable Details [hide private]

randomSource

Value:
None