Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
openchemlib-extended
Advanced tools
Openchemlib extended
It allows to create a database of molecule and make substructure search
const MoleculeDB = require(OCLE).DB;
let moleculeDB = new MoleculeDB();
moleculeDB.pushMoleculeInfo({ smiles: 'CCCC' });
moleculeDB.pushMoleculeInfo({ smiles: 'CCCC' });
moleculeDB.pushMoleculeInfo({ smiles: 'CCCCC' });
let result = moleculeDB.search('CC', {
format: 'smiles',
mode: 'substructure',
flattenResult: false,
keepMolecule: false
});
Class that allows to create a database of molecules in memory
let moleculeDB = new MoleculeDB({ computeProperties: true });
const MoleculeDB = require(OCLE).DB;
MoleculeDB.parseSDF(sdf, { computeProperties: true });
const MoleculeDB = require(OCLE).DB;
MoleculeDB.parseCSV(csv, { computeProperties: true });
moleculeInfo
is an object that may contain the following properties:
Create an instance of the RXN object based on a text file in RXN format. This will also calculate for each reagent and product:
var rxn = new RXN(rxnFile)
methods on rxn:
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:
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()```.
Return a SVG containing a circle at the level of each atom having a data-atomid a diastereoisotopic unique identifier.
options:
Returns an array containing diastereotopic hoses codes
options:
Returns an extended groupedDiastereotopicID with hoses
options:
Returns an array of explicit hydrogens added molecule of diastereotopicAtomIDs. Extra information like the diastereotopicIDs of the molecule are added
Returns an array containing all-pairs shortest paths from a connectivity matrix using the FloydWarshall algorithm. options:
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). Options allows to tune the values you want in the matrix.
Options:
Example using npm:
var OCLE = require('openchemlib-extended');
var molecule = OCLE.Molecule.fromSmiles('c1ccccc1');
var matrix = molecule.getConnectivityMatrix({mass: true, sdt: true});
console.log(matrix);
Return an object containing the molecular formula and the molecular formula of each distinct part of the molecule. The molecular formula takes into account multihydrates, charges and isotopes.
FAQs
Openchemlib extended
The npm package openchemlib-extended receives a total of 6 weekly downloads. As such, openchemlib-extended popularity was classified as not popular.
We found that openchemlib-extended demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.