openchemlib-utils
v6.4.1
Published
Various utilities that extends openchemlib-js like HOSE codes or diastereotopic IDs
Downloads
12,240
Readme
openchemlib-utils
.
Installation
$ npm i openchemlib-utils
Usage
import OCL from 'openchemlib'; // version should be greater than 7.4
import { getPathsInfo, initOCL } from 'openchemlib-utils';
initOCL(OCL);
const molecule = OCL.Molecule.fromSmiles('CCCCC');
const paths = getPathsInfo(molecule, {
fromLabel: 'H',
toLabel: 'H',
minLength: 1,
maxLength: 4,
});
console.log(paths);
We will add more examples in /examples
.