New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

openchemlib-extended

Package Overview
Dependencies
Maintainers
2
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

openchemlib-extended

Openchemlib extended

  • 1.12.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
20
decreased by-9.09%
Maintainers
2
Weekly downloads
 
Created
Source

openchemlib-extended

NPM version build status David deps npm download

Openchemlib extended

DB

RXN

Create an instance of the RXN object based on a text file in RXN format. This will also calculate for each reagent and product:

  • SMILES
  • Molecular formula
  • Molecular weight
  • idCode
var rxn = new RXN(rxnFile)

methods on rxn:

  • addReagent(molfile)
  • addProduct(molfile)
  • toRXN() : create a new RXN file

Molecule extension

getGroupedDiastereotopicAtomIDs(options)

Returns an array containing all the different diastereotopic atoms in the molecule with the occurence of each of them. It may be useful to first create the implicit hydrogens before using the method ``Molecule.addImplicitHydrogens()```.

options:

  • atomLabel: filter to show only a specific atom (default: '')

getAtomsInfo(options)

Returns an array containing many informations about the atoms. It may be useful to first create the implicit hydrogens before using the method ``Molecule.addImplicitHydrogens()```.

toDiastereotopicSVG(options)

Return a SVG containing a circle at the level of each atom having a data-atomid a diastereoisotopic unique identifier.

options:

  • height (default: 300)
  • width (default: 200)
  • prefix : prefix for the id of each SVG element (default: ocl)

getDiastereotopicHoseCodes(options)

Returns an array containing diastereotopic hoses codes

options:

  • maxSphereSize: maxSphere for hose code calculation

getGroupedHOSECodes(options)

Returns an extended groupedDiastereotopicID with hoses

options:

  • atomLabel: filter to show only a specific atom (default: '')
  • maxSphereSize: maxSphere for hose code calculation

toVisualizerMolfile()

getNumberOfAtoms()

getExtendedDiastereotopicAtomIDs()

Return an array of explicit hydrogens added molecule of diastereotopicAtomIDs. Extra information like the diastereotopicIDs of the molecule are added

getConnectivityMatrix()

Returns an array of array (matrix) containing a '1' for all the connected atoms. An atom is considered connected to itself (dialog is equal to 1)

License

BSD-3-Clause

Keywords

FAQs

Package last updated on 08 Nov 2016

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc