Reads in molecules from the given string in the given
format and calls function
f on each molecule.
The results are then combinded using the
function, if given.
forEachMol(inFormat, inString, f, reduce)
Format of string in
The compounds to generate fingerprints for. The format should be exactly what would be in a file of the same format. Newlines can be represented with "\n".
A function taking one OBMol reference and possibly returning a result.
This function will be passed to the
The result will be a List of return values from the
f function if not
reduce function was
given. Otherwise it will be the result of the
reduce function applied to the results of the
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.