openchemlib-utils
TypeScript icon, indicating that this package has built-in type declarations

5.17.0 • 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

718

Version

5.17.0

License

MIT

Unpacked Size

1.1 MB

Total Files

819

Last publish

Collaborators

  • targos
  • lpatiny
  • cheminfo-bot
  • stropitek