Socket
Book a DemoInstallSign in
Socket

j-coupling-constant-predictor

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

j-coupling-constant-predictor

Predictor for 1,2,3 and 4 J coupling constants

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

j-coupling-constant-predictor

NPM version build status Test coverage David deps npm download

Predictor of 1,2,3,4 and 5 J H-H coupling constants

Installation

$ npm i j-coupling-constant-predictor

API Documentation

Example

const predictor = require('j-coupling-constant-predictor');
const fs = require('fs');
const OCLE = require('openchemlib-extended');

let molfile = fs.readFileSync('moleculeWithExpandedHydrogens.mol').toString();
let molmap = OCLE.Molecule.fromMolfileWithAtomMap(molfile);

//Predict the coupling constants using the 3D information of the molecule. Use the mean of the most similar
//entries as value for the coupling constant. You can use median aswell.
let couplings = predictor.predict3D(molmap.molecule, {maxLength: 6, mapper: x => x.mean });

// Remove the couplings between chemically equivalent atoms
couplings = couplings.filter(x => x.fromDiaID !== x.toDiaID);

License

MIT

FAQs

Package last updated on 17 Oct 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts