cheminfo / openchemlib-utils

Home Page:https://cheminfo.github.io/openchemlib-utils/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

https://cheminfo.github.io/openchemlib-utils/

License:MIT License


Languages

Language:JavaScript 88.4%Language:TypeScript 11.6%