rdkit-esm 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/RDKit_minimal.wasm +0 -0
- package/dist/index.d.ts +31 -2
- package/dist/index.js +1618 -1689
- package/package.json +2 -2
package/dist/RDKit_minimal.wasm
CHANGED
|
Binary file
|
package/dist/index.d.ts
CHANGED
|
@@ -1766,6 +1766,23 @@ type RDKitForceFieldName = 'MMFF94' | 'UFF';
|
|
|
1766
1766
|
type RDKitForceFieldEnergyDetails = {
|
|
1767
1767
|
job: 'energy';
|
|
1768
1768
|
};
|
|
1769
|
+
/** Atoms tethered to their starting coordinates during a minimization */
|
|
1770
|
+
type RDKitPositionRestraint = {
|
|
1771
|
+
/** Indices of the restrained atoms */
|
|
1772
|
+
atoms: number[];
|
|
1773
|
+
/**
|
|
1774
|
+
* Distance in Å an atom can move from its starting position without penalty.
|
|
1775
|
+
* `0` gives a plain harmonic restraint.
|
|
1776
|
+
* @default 0
|
|
1777
|
+
*/
|
|
1778
|
+
maxDisplacement?: number;
|
|
1779
|
+
/**
|
|
1780
|
+
* Force constant in kcal/mol/Ų applied beyond `maxDisplacement`: the penalty is
|
|
1781
|
+
* `0.5 * forceConstant * (distance - maxDisplacement)²`.
|
|
1782
|
+
* @default 100
|
|
1783
|
+
*/
|
|
1784
|
+
forceConstant?: number;
|
|
1785
|
+
};
|
|
1769
1786
|
type RDKitMinimizeDetails = {
|
|
1770
1787
|
job: 'minimize';
|
|
1771
1788
|
/**
|
|
@@ -1783,6 +1800,15 @@ type RDKitMinimizeDetails = {
|
|
|
1783
1800
|
* @default []
|
|
1784
1801
|
*/
|
|
1785
1802
|
fixedAtoms: number[];
|
|
1803
|
+
/**
|
|
1804
|
+
* Groups of atoms tethered to their starting coordinates. Unlike `fixedAtoms`, restrained
|
|
1805
|
+
* atoms can still move when the force field pushes them hard enough. An atom can be in
|
|
1806
|
+
* at most one group and cannot also be in `fixedAtoms`.
|
|
1807
|
+
*
|
|
1808
|
+
* Restraint penalties are included in the reported energies.
|
|
1809
|
+
* @default []
|
|
1810
|
+
*/
|
|
1811
|
+
positionRestraints: RDKitPositionRestraint[];
|
|
1786
1812
|
};
|
|
1787
1813
|
/** Details accepted by `JSMol.run_forcefield` */
|
|
1788
1814
|
type RDKitForceFieldDetails = RDKitForceFieldEnergyDetails | (Pick<RDKitMinimizeDetails, 'job'> & Partial<Omit<RDKitMinimizeDetails, 'job'>>);
|
|
@@ -2302,10 +2328,13 @@ export declare class Mol implements Disposable {
|
|
|
2302
2328
|
* - Add explicit hydrogens first (`addHsInPlace()`), otherwise RDKit logs a warning.
|
|
2303
2329
|
* - 2D coordinates are accepted, but a perfectly flat structure stays flat:
|
|
2304
2330
|
* there is no force out of the plane. Use `generateConformers()` to get 3D coordinates.
|
|
2331
|
+
* - With `positionRestraints`, the reported energies include the restraint penalties, so
|
|
2332
|
+
* `finalEnergy` can differ from `getForceFieldEnergy()` on the result.
|
|
2305
2333
|
*
|
|
2306
2334
|
* @param options - Minimization options
|
|
2307
2335
|
* @returns Energies, convergence and the minimization trajectory, or null on failure
|
|
2308
|
-
* (e.g. the molecule has no coordinates, or `fixedAtoms`
|
|
2336
|
+
* (e.g. the molecule has no coordinates, or `fixedAtoms` / `positionRestraints` are out of
|
|
2337
|
+
* range or overlap).
|
|
2309
2338
|
* Pass `{ throwOnError: true }` to throw a {@link RDKitOperationError} instead.
|
|
2310
2339
|
*/
|
|
2311
2340
|
minimize(): RDKitMinimization | null;
|
|
@@ -2832,4 +2861,4 @@ interface InitRDKitOptions {
|
|
|
2832
2861
|
export declare function initRDKit(options?: Partial<InitRDKitOptions>): Promise<RDKit>;
|
|
2833
2862
|
export declare function initRDKit<T extends typeof RDKit>(options: Partial<InitRDKitOptions> | undefined, constructor: T): Promise<InstanceType<T>>;
|
|
2834
2863
|
//#endregion
|
|
2835
|
-
export type { ColourPalette, ColourPaletteName, DrawColour, DrawingExtentsInclude, InitRDKitOptions, JSMol, JSReaction, MCSResult, MMPAFragmentation, MolList, RDKitAlignedCoordsOptions, RDKitAtomPairFPOptions, RDKitCondenseAbbreviationsOptions, RDKitConfigureOptions, RDKitConformers, RDKitDescriptors, RDKitEvents, RDKitFailCallback, RDKitForceFieldDetails, RDKitForceFieldEnergyDetails, RDKitForceFieldEnergyOptions, RDKitForceFieldEnergyResult, RDKitForceFieldFrame, RDKitForceFieldName, RDKitGenerateConformersDetails, RDKitGenerateConformersOptions, RDKitGenerateConformersResult, RDKitGetCxSmilesOptions, RDKitGetFragsOptions, RDKitGetMCSOptions, RDKitGetMolBlockOptions, RDKitGetMolOpt, RDKitGetMolOptions, RDKitGetQMolOptions, RDKitGetRgdOptions, RDKitGetRxnOptions, RDKitGetSVGOptions, RDKitGetSmilesOptions, RDKitJson, RDKitJsonAtom, RDKitJsonBond, RDKitJsonConformer2D, RDKitJsonConformer3D, RDKitJsonExtension, RDKitJsonMolecule, RDKitMCSResult, RDKitMinimization, RDKitMinimizationFrame, RDKitMinimizeDetails, RDKitMinimizeOptions, RDKitMinimizeResult, RDKitMmpaFragsOptions, RDKitMmpaFragsResult, RDKitModule, RDKitMolOperation, RDKitMorganFPOptions, RDKitOperation, RDKitParseErrorEvent, RDKitParseOperation, RDKitPatternFPOptions, RDKitRdkitFpOptions, RDKitRemoveHsOptions, RDKitRxnDetails, RDKitSanitizeFlags, RDKitStereoTags, RDKitSubstructMatch, RDKitSubstructMatchOptions, RDKitTopologicalTorsionFPOptions, RGDRow, SimilarityMetric, SubstructLibraryAddOptions, SubstructLibraryEntry, SubstructLibraryOptions, SubstructLibrarySearchOptions, SubstructLibrarySearchResult, TverskySimilarityOptions };
|
|
2864
|
+
export type { ColourPalette, ColourPaletteName, DrawColour, DrawingExtentsInclude, InitRDKitOptions, JSMol, JSReaction, MCSResult, MMPAFragmentation, MolList, RDKitAlignedCoordsOptions, RDKitAtomPairFPOptions, RDKitCondenseAbbreviationsOptions, RDKitConfigureOptions, RDKitConformers, RDKitDescriptors, RDKitEvents, RDKitFailCallback, RDKitForceFieldDetails, RDKitForceFieldEnergyDetails, RDKitForceFieldEnergyOptions, RDKitForceFieldEnergyResult, RDKitForceFieldFrame, RDKitForceFieldName, RDKitGenerateConformersDetails, RDKitGenerateConformersOptions, RDKitGenerateConformersResult, RDKitGetCxSmilesOptions, RDKitGetFragsOptions, RDKitGetMCSOptions, RDKitGetMolBlockOptions, RDKitGetMolOpt, RDKitGetMolOptions, RDKitGetQMolOptions, RDKitGetRgdOptions, RDKitGetRxnOptions, RDKitGetSVGOptions, RDKitGetSmilesOptions, RDKitJson, RDKitJsonAtom, RDKitJsonBond, RDKitJsonConformer2D, RDKitJsonConformer3D, RDKitJsonExtension, RDKitJsonMolecule, RDKitMCSResult, RDKitMinimization, RDKitMinimizationFrame, RDKitMinimizeDetails, RDKitMinimizeOptions, RDKitMinimizeResult, RDKitMmpaFragsOptions, RDKitMmpaFragsResult, RDKitModule, RDKitMolOperation, RDKitMorganFPOptions, RDKitOperation, RDKitParseErrorEvent, RDKitParseOperation, RDKitPatternFPOptions, RDKitPositionRestraint, RDKitRdkitFpOptions, RDKitRemoveHsOptions, RDKitRxnDetails, RDKitSanitizeFlags, RDKitStereoTags, RDKitSubstructMatch, RDKitSubstructMatchOptions, RDKitTopologicalTorsionFPOptions, RGDRow, SimilarityMetric, SubstructLibraryAddOptions, SubstructLibraryEntry, SubstructLibraryOptions, SubstructLibrarySearchOptions, SubstructLibrarySearchResult, TverskySimilarityOptions };
|