openchemlib-utils
v6.5.1
Published
Various utilities that extends openchemlib-js like HOSE codes or diastereotopic IDs
Downloads
9,531
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
.