nmr-processing 12.8.3 → 12.9.1
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/nmr-processing.cjs +3 -2
- package/nmr-processing.d.ts +23 -0
- package/nmr-processing.mjs +3 -2
- package/package.json +1 -1
package/nmr-processing.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ import { Logger } from 'cheminfo-types';
|
|
|
13
13
|
import { Matrix } from 'ml-matrix';
|
|
14
14
|
import * as matrixPeakFinders from 'ml-matrix-peaks-finder';
|
|
15
15
|
import { Molecule } from 'openchemlib/full';
|
|
16
|
+
import type { Molecule as Molecule_2 } from 'openchemlib/minimal';
|
|
16
17
|
import { NmrData1D } from 'cheminfo-types';
|
|
17
18
|
import { NmrData2D } from 'cheminfo-types';
|
|
18
19
|
import { NmrData2DContent } from 'cheminfo-types';
|
|
@@ -263,6 +264,16 @@ export declare interface CreateSignals2DOptions {
|
|
|
263
264
|
maxX: number;
|
|
264
265
|
}
|
|
265
266
|
|
|
267
|
+
export declare function ctParser(sdf: string, csv: string, options: {
|
|
268
|
+
OCL: {
|
|
269
|
+
Molecule: typeof Molecule_2;
|
|
270
|
+
};
|
|
271
|
+
}): {
|
|
272
|
+
molecules: ParsedMolecule[];
|
|
273
|
+
sections: Record<string, any>;
|
|
274
|
+
groups: any[];
|
|
275
|
+
};
|
|
276
|
+
|
|
266
277
|
export declare type DataBaseLevelStructure = Record<string, [
|
|
267
278
|
number,
|
|
268
279
|
number,
|
|
@@ -607,6 +618,8 @@ export declare function getBaselineZones(data: NmrData1D, options?: BaselineZone
|
|
|
607
618
|
*/
|
|
608
619
|
export declare function getBaselineZonesByDietrich(data: NmrData1D, options?: {
|
|
609
620
|
maxDistanceToJoin?: number;
|
|
621
|
+
minWidth?: number;
|
|
622
|
+
nbZones?: number;
|
|
610
623
|
}): BaselineCorrectionZone[];
|
|
611
624
|
|
|
612
625
|
export declare function getDatabase(url?: string, options?: {
|
|
@@ -2843,6 +2856,16 @@ declare type ParametersFromOptions = Record<Parameter, Record<string, number | (
|
|
|
2843
2856
|
|
|
2844
2857
|
declare type ParametersFromSignal = Record<string, Record<string, number>>;
|
|
2845
2858
|
|
|
2859
|
+
declare interface ParsedMolecule {
|
|
2860
|
+
atomsMapping: Array<{
|
|
2861
|
+
atom: number;
|
|
2862
|
+
label: string;
|
|
2863
|
+
}>;
|
|
2864
|
+
atomsMappingLookup: Record<string, number>;
|
|
2865
|
+
molfile: string;
|
|
2866
|
+
id: string;
|
|
2867
|
+
}
|
|
2868
|
+
|
|
2846
2869
|
export declare interface Peak1D extends Omit<NMRPeak1D, 'id'>, BasePeak {
|
|
2847
2870
|
originalX?: number;
|
|
2848
2871
|
}
|