Optional
options: { computeProperties?: boolean; keepEmptyMolecules?: boolean } = {}Options.
Append the property data.color
to each entry based on a data or property label
{object} [options={}]
{string} [options.dataLabel] name of the property from data
to use
{string} [options.propertyLabel] name of the property from properties
to use
{number} [options.colorLabel='color'] name of the property to add in data that will contain the color
{number} [options.minValue]
{number} [options.maxValue]
{number} [options.minHue=0]
{number} [options.maxHue=360]
{number} [options.saturation=65] percent of color saturation
{number} [options.lightness=65] percent of color lightness
append to the current database a CSV file
text file containing the comma separated value file
Optional
options: {Optional
dynamicTyping?: booleanOptional
header?: booleanOptional
onStep?: Functioncall back to execute after each molecule
Optional
skipEmptyLines?: booleanAppend an array of entries to the current database. An entry is an object that by default should contain a 'ocl' property containing idCode and optionally index and coordinates
Optional
options: {Optional
coordinatesPath?: stringOptional
idCodePath?: stringOptional
indexPath?: stringOptional
molfilePath?: stringOptional
mwPath?: stringOptional
onStep?: Functioncall back to execute after each molecule
Optional
smilesPath?: stringAppend a SDF to the current database
text file containing the sdf
Optional
options: { onStep?: Function }Options.
Optional
onStep?: Functioncall back to execute after each molecule
Append a list of SMILES to the current database.
text file containing a list of smiles
Optional
options: { onStep?: Function }Options
Optional
onStep?: Functioncall back to execute after each molecule
Search in a MoleculesDB Inside the database all the same molecules are group together
Optional
query: string | Moleculesmiles, molfile, idlCode or instance of Molecule to look for
Optional
options: {Options
Optional
flattenResult?: booleanThe database group the data for the same product. This allows to flatten the result
Optional
format?: "smiles" | "molfile" | "smarts" | "idCode"query format
Optional
keepMolecule?: booleankeep the OCL.Molecule object in the result
Optional
limit?: numbermaximal number of result
Optional
mode?: stringsearch by 'substructure', 'exact' or 'similarity'
array of object of the type {(molecule), idCode, data, properties}
Search in a MoleculesDB Inside the database all the same molecules are group together
Optional
query: string | Moleculesmiles, molfile, idCode or instance of Molecule to look for
Optional
options: {Options.
Optional
controler?: AbortControllercallback to execute to check if the search should be aborted
Optional
flattenResult?: booleanThe database group the data for the same product. This allows to flatten the result
Optional
format?: "smiles" | "molfile" | "smarts" | "idCode"query format
Optional
interval?: numberinterval in ms to call the onStep callback
Optional
keepMolecule?: booleankeep the OCL.Molecule object in the result
Optional
limit?: numbermaximal number of result
Optional
mode?: stringsearch by 'substructure', 'exact' or 'similarity'
Optional
onStep?: Functioncallback to execute after each interval
array of object of the type {(molecule), idCode, data, properties}
openchemlib library