openchemlib-utils

8.1.1 • Public • Published

openchemlib-utils

NPM version build status npm download

.

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.

License

MIT

Package Sidebar

Install

npm i openchemlib-utils

Weekly Downloads

1,525

Version

8.1.1

License

MIT

Unpacked Size

597 kB

Total Files

433

Last publish

Collaborators

  • targos
  • lpatiny
  • cheminfo-bot
  • stropitek