1.1.1 • Published 2 years ago

@cript-web/bigsmiles-toolkit v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

CI

BigSMILES Tookit

JavaScript* parser and serializer for BigSMILES line notation.

* basic TS typings are provided (*.d.ts), but they're just there to provide Typescript compatibility.

Usage

First, you need to install the package and RDKit (the later may be optional depending on the functions you'll use)

npm i @cript-web/bigsmiles-toolkit @rdkit/rdkit

Then import the package and RDKit it in your code:

import * as toolkit from "@cript-web/bigsmiles-toolkit";
import RDKit from '@rdkit/rdkit';

Finally, you can use the library. Below, an example to convert a BigSMILES to a molblock.

// 2. Instantiate RDKit module (required to compute atom coordinates)
rdkit = await RDKit();

// 3. Use bigsmiles-toolkit to convert a bigsmiles string to a molblock
const bigsmiles       = "...";
const molblock        = toolkit.bigsmiles_to_molfile(rdkit, bigsmiles);

console.log(`${bigsmiles} converted to:\n${molblock}`);
1.1.1

2 years ago

1.0.9

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago