1.1.1.3.1.1.1.4. ExplorationData¶
- class molpher.swig_wrappers.core.ExplorationData[source]¶
Note
If an instance of this class is created explicitly, all parameters are set to their default values (see the description of
molpher.core.ExplorationData
).Contains data about the state of an exploration tree and provides facilities to read it and change it along with the morphing parameters set.
This class uses getter and setter methods to read and modify the underlying data structure. The naming conventions tightly follow the wrapped C++ implementation and should be consistent with the parameter names published in 1.
- 1
Hoksza D., Škoda P., Voršilák M., Svozil D. (2014) Molpher: a software framework for systematic chemical space exploration. J Cheminform. 6:7. PubMed, DOI
Warning
Not all methods that can manipulate the tree topology are implemented and exposed in the API, yet. Those few that are exposed, however, should still be considered as experimental.
- getSource()[source]¶
Returns the source molecule.
- Returns
MolpherMol
instance representing the current source molecule- Return type
- getTarget()[source]¶
Returns the target molecule.
- Returns
MolpherMol
instance representing the current target molecule- Return type
- getChemicalOperators()[source]¶
Returns a
tuple
of current chemical operators asstr
identifiers.¶ Identifier
Description
Add a random atom to the molecule.
Remove an atom from the molecule.
Add a bond between two random atoms.
Remove a bond between two random atoms.
Change a randomly selected atom to a different element.
Insert an atom between two other atoms.
Move one ending of a bond to another atom.
Remove an atom between two atoms and connect them with a new bond.
- getFingerprint()[source]¶
Returns an identifier of the currently set molecular fingerprint.
¶ Identifier
Description
—
—
—
—
—
—
—
—
—
—
—
—
—
- Returns
molecular fingerprint identifier
- Return type
- getSimilarityCoefficient()[source]¶
Returns an identifier of the currently set similarity measure.
¶ Identifier
Description
—
—
—
—
—
—
—
—
—
—
—
—
—
- Returns
similarity measure identifier
- Return type
- getMinAcceptableMolecularWeight()[source]¶
-
- Returns
minimum acceptable weight during filtering
- Return type
- getMaxAcceptableMolecularWeight()[source]¶
-
- Returns
maximum acceptable weight during filtering
- Return type
- getItThreshold()[source]¶
-
- Returns
number of generations until non-producing morphs are pruned
- Return type
- setSource(arg2)[source]¶
Set the source molecule.
- Parameters
*args (
MolpherMol
orstr
) –MolpherMol
instance or SMILES representing the current source molecule
- setTarget(arg2)[source]¶
Set the target molecule.
- Parameters
*args (
MolpherMol
orstr
) –MolpherMol
instance or SMILES representing the current source molecule
- setChemicalOperators(arg2)[source]¶
Set the current chemical operators as
str
identifiers.- Parameters
*args (
tuple
ofstr
) – currentchemical operators
as atuple
ofstr
identifiers
- setFingerprint(arg2)[source]¶
Set the molecular fingerprint.
- Parameters
*args (
str
) –molecular fingerprint
identifier
- setSimilarityCoefficient(arg2)[source]¶
Set the similarity measure.
- Parameters
*args (
str
) – similarity measure identifier
- setMinAcceptableMolecularWeight(arg2)[source]¶
-
- Parameters
*args (
float
) – minimum acceptable weight during filtering
- setMaxAcceptableMolecularWeight(arg2)[source]¶
-
- Parameters
*args (
float
) – maximum acceptable weight during filtering
- setCntMaxMorphs(arg2)[source]¶
-
- Parameters
*args (
int
) – maximum number of non-producing morphs per molecule
- setItThreshold(arg2)[source]¶
-
- Parameters
*args (
int
) – number of generations until non-producing morphs are pruned
- static load(filename)¶
Load data and parameters from a tree snapshot or a XML template.
- Parameters
filename (
str
) – path to the file to load from
- save(filename)[source]¶
Save data and parameters from a tree snapshot or a XML template.
- Parameters
filename (
str
) – path to the file to save to