openchemlib-utils
Advanced tools
Comparing version 4.2.0 to 4.2.1
@@ -23,3 +23,3 @@ /** | ||
hoses: any[]; | ||
diaIDs: any[]; | ||
diaIDs: any[] | undefined; | ||
moleculeWithHydrogens: import("openchemlib").Molecule; | ||
@@ -26,0 +26,0 @@ distanceMatrix: any[]; |
@@ -21,3 +21,3 @@ import { ensureHeterotopicChiralBonds } from '../diastereotopic/ensureHeterotopicChiralBonds.js'; | ||
export function getHoseCodesAndInfo(molecule, options = {}) { | ||
const { minSphereSize, maxSphereSize, calculateDiastereotopicIDs } = options; | ||
const { minSphereSize, maxSphereSize, calculateDiastereotopicIDs = true, } = options; | ||
const { Molecule } = molecule.getOCL(); | ||
@@ -63,3 +63,3 @@ molecule = molecule.getCompactCopy(); | ||
hoses, | ||
diaIDs, | ||
diaIDs: calculateDiastereotopicIDs ? diaIDs : undefined, | ||
moleculeWithHydrogens: molecule, | ||
@@ -66,0 +66,0 @@ distanceMatrix, |
@@ -23,3 +23,3 @@ /** | ||
hoses: any[]; | ||
diaIDs: any[]; | ||
diaIDs: any[] | undefined; | ||
moleculeWithHydrogens: import("openchemlib").Molecule; | ||
@@ -26,0 +26,0 @@ distanceMatrix: any[]; |
@@ -24,3 +24,3 @@ "use strict"; | ||
function getHoseCodesAndInfo(molecule, options = {}) { | ||
const { minSphereSize, maxSphereSize, calculateDiastereotopicIDs } = options; | ||
const { minSphereSize, maxSphereSize, calculateDiastereotopicIDs = true, } = options; | ||
const { Molecule } = molecule.getOCL(); | ||
@@ -66,3 +66,3 @@ molecule = molecule.getCompactCopy(); | ||
hoses, | ||
diaIDs, | ||
diaIDs: calculateDiastereotopicIDs ? diaIDs : undefined, | ||
moleculeWithHydrogens: molecule, | ||
@@ -69,0 +69,0 @@ distanceMatrix, |
{ | ||
"name": "openchemlib-utils", | ||
"version": "4.2.0", | ||
"version": "4.2.1", | ||
"description": "Various utilities that extends openchemlib-js like HOSE codes or diastereotopic IDs", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
@@ -23,3 +23,7 @@ import { ensureHeterotopicChiralBonds } from '../diastereotopic/ensureHeterotopicChiralBonds.js'; | ||
export function getHoseCodesAndInfo(molecule, options = {}) { | ||
const { minSphereSize, maxSphereSize, calculateDiastereotopicIDs } = options; | ||
const { | ||
minSphereSize, | ||
maxSphereSize, | ||
calculateDiastereotopicIDs = true, | ||
} = options; | ||
const { Molecule } = molecule.getOCL(); | ||
@@ -36,3 +40,2 @@ molecule = molecule.getCompactCopy(); | ||
const symmetryRanks = getSymmetryRanks(molecule); | ||
const cache = {}; | ||
@@ -49,3 +52,2 @@ const hoses = []; | ||
} | ||
const tempMolecule = molecule.getCompactCopy(); | ||
@@ -77,3 +79,3 @@ tagAtom(tempMolecule, i); | ||
hoses, | ||
diaIDs, | ||
diaIDs: calculateDiastereotopicIDs ? diaIDs : undefined, | ||
moleculeWithHydrogens: molecule, | ||
@@ -80,0 +82,0 @@ distanceMatrix, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
819678
11731
0