Skip to content

darmn-js/openchemlib-utils

 
 

Repository files navigation

openchemlib-utils

NPM version build status npm download

.

Installation

$ npm i openchemlib-utils

Usage

import OCL from 'openchemlib';

import { Path, initOCL } from 'openchemlib-utils';
initOCL(OCL);

const molecule = OCL.Molecule.fromSmiles('CCCCC');

const paths = Path.getPathsInfo(molecule, {
  fromLabel: 'H',
  toLabel: 'H',
  minLength: 1,
  maxLength: 4,
});

console.log(paths);

We will add more examples in /examples.

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%