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.
|
__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 |
|
|