nmr-processing 17.3.1 → 18.0.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/CHANGELOG.md +1805 -0
- package/nmr-processing.cjs +2 -2
- package/nmr-processing.d.ts +17 -71
- package/nmr-processing.mjs +2 -2
- package/package.json +8 -8
package/nmr-processing.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { AnalizeMultipletOptions } from 'multiplet-analysis';
|
|
2
|
+
import { AtomMapping } from './ctMolfileParser';
|
|
2
3
|
import { BaseRegression } from 'ml-regression-base';
|
|
4
|
+
import { CTSignal } from './ctCreateSignals';
|
|
3
5
|
import type { DataReIm } from 'ml-spectra-processing';
|
|
4
6
|
import type { DataXReIm } from 'ml-spectra-processing';
|
|
5
7
|
import { DataXY } from 'cheminfo-types';
|
|
@@ -12,25 +14,33 @@ import type { GroupedDiaID } from 'openchemlib-utils';
|
|
|
12
14
|
import type { GSDOptions } from 'ml-gsd';
|
|
13
15
|
import { GSDPeakOptimized } from 'ml-gsd';
|
|
14
16
|
import { GSDPeakOptimizedID } from 'ml-gsd';
|
|
17
|
+
import { Jcoupling as Jcoupling_2 } from './Jcoupling';
|
|
15
18
|
import type { JoinBroadPeaksOptions } from 'ml-gsd';
|
|
16
19
|
import { LightLogger } from 'cheminfo-types';
|
|
17
20
|
import type { Logger } from 'cheminfo-types';
|
|
21
|
+
import { MatchingMultiplicity as MatchingMultiplicity_2 } from '..';
|
|
18
22
|
import { Matrix } from 'ml-matrix';
|
|
19
|
-
import type { Molecule } from 'openchemlib
|
|
23
|
+
import type { Molecule } from 'openchemlib';
|
|
20
24
|
import type { NmrData1D } from 'cheminfo-types';
|
|
21
25
|
import type { NmrData2D } from 'cheminfo-types';
|
|
22
26
|
import type { NmrData2DContent } from 'cheminfo-types';
|
|
23
27
|
import type { NmrData2DFt } from 'cheminfo-types';
|
|
28
|
+
import { NMRRange as NMRRange_2 } from './NMRRange';
|
|
24
29
|
import type { NumberArray } from 'cheminfo-types';
|
|
25
30
|
import type { OCLMolecule } from 'cheminfo-types';
|
|
31
|
+
import { OneLetterMultiplet as OneLetterMultiplet_2 } from './MultiplicityPatterns';
|
|
26
32
|
import type { OptimizePeaksOptions } from 'ml-gsd';
|
|
27
33
|
import type { OptionsSG1D } from 'spectrum-generator';
|
|
34
|
+
import { ParsedCoupling } from './ctJSONParser';
|
|
35
|
+
import { ParsedShift } from './ctJSONParser';
|
|
28
36
|
import type { Peak2D as Peak2D_2 } from 'ml-matrix-peaks-finder';
|
|
29
37
|
import type { PeakXYWidth } from 'cheminfo-types';
|
|
30
38
|
import { PointXY } from 'cheminfo-types';
|
|
31
39
|
import type { Shape1D } from 'ml-peak-shape-generator';
|
|
40
|
+
import { SpectraDataWithIds as SpectraDataWithIds_2 } from './nmrAssigment';
|
|
32
41
|
import type { TopicMolecule } from 'openchemlib-utils';
|
|
33
42
|
import type { XDistributionStats } from 'ml-spectra-processing';
|
|
43
|
+
import type { XRobustDistributionStats } from 'ml-spectra-processing';
|
|
34
44
|
import type { XYEquallySpacedOptions } from 'ml-spectra-processing';
|
|
35
45
|
import type { XYNumber } from 'spectrum-generator';
|
|
36
46
|
|
|
@@ -127,8 +137,6 @@ export declare interface ApplyWindowOptions {
|
|
|
127
137
|
output?: DoubleArray;
|
|
128
138
|
}
|
|
129
139
|
|
|
130
|
-
declare type Atom = ReturnType<typeof getAtoms>[0];
|
|
131
|
-
|
|
132
140
|
declare interface AtomInput {
|
|
133
141
|
id: ID;
|
|
134
142
|
pid: ID;
|
|
@@ -149,36 +157,6 @@ declare interface AtomInput {
|
|
|
149
157
|
s: ID | null;
|
|
150
158
|
}
|
|
151
159
|
|
|
152
|
-
/**
|
|
153
|
-
* Interface for atom mapping information
|
|
154
|
-
*/
|
|
155
|
-
declare interface AtomMapping {
|
|
156
|
-
label: string;
|
|
157
|
-
atom: number;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
declare interface AtomOutput {
|
|
161
|
-
id: ID;
|
|
162
|
-
parentID: ID;
|
|
163
|
-
name: string;
|
|
164
|
-
remarks: string;
|
|
165
|
-
nucleusType: NucleusType;
|
|
166
|
-
cipRank: {
|
|
167
|
-
canonical: number;
|
|
168
|
-
rd: number;
|
|
169
|
-
nmr: number;
|
|
170
|
-
};
|
|
171
|
-
ordinal: number;
|
|
172
|
-
stereochemistryFlags: number[];
|
|
173
|
-
spinSystemFlags: number[];
|
|
174
|
-
formalcharge: number;
|
|
175
|
-
partialCharge: number;
|
|
176
|
-
coordinates2D: [number, number, number];
|
|
177
|
-
coordinates3D: [number, number, number];
|
|
178
|
-
parent2D: string | null;
|
|
179
|
-
shift: ID | null;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
160
|
declare type AtomTypes = 'H' | 'C';
|
|
183
161
|
|
|
184
162
|
export declare interface AutoPhaseCorrection2D {
|
|
@@ -394,7 +372,7 @@ declare interface CouplingInput {
|
|
|
394
372
|
s: [ID, ID];
|
|
395
373
|
}
|
|
396
374
|
|
|
397
|
-
export declare const couplingPatterns:
|
|
375
|
+
export declare const couplingPatterns: OneLetterMultiplet_2[];
|
|
398
376
|
|
|
399
377
|
export declare function createApodizationWindowData(options: {
|
|
400
378
|
windowOptions: {
|
|
@@ -445,14 +423,6 @@ declare interface CTJSONInput {
|
|
|
445
423
|
b: BondInput[];
|
|
446
424
|
}
|
|
447
425
|
|
|
448
|
-
declare interface CTSignal {
|
|
449
|
-
delta: number;
|
|
450
|
-
diaIDs: string[];
|
|
451
|
-
js: Jcoupling[];
|
|
452
|
-
nbAtoms: number;
|
|
453
|
-
atoms: number[];
|
|
454
|
-
}
|
|
455
|
-
|
|
456
426
|
export declare type DataBaseLevelEntry = number | [number] | [number, number, number, number | null, number] | undefined | XDistributionStats;
|
|
457
427
|
|
|
458
428
|
export declare type DataBaseLevelStructure = Record<string, DataBaseLevelEntry>;
|
|
@@ -730,7 +700,7 @@ export declare namespace Filters2DManager {
|
|
|
730
700
|
* Look for a multiplet based on the pattern name or abbreviation.
|
|
731
701
|
* @param name - pattern name or abbreviation.
|
|
732
702
|
*/
|
|
733
|
-
export declare function findMultiplet(name: string):
|
|
703
|
+
export declare function findMultiplet(name: string): MatchingMultiplicity_2 | undefined;
|
|
734
704
|
|
|
735
705
|
/**
|
|
736
706
|
* Finds a peak that can serve as a pivot point within specified boundaries.
|
|
@@ -871,7 +841,7 @@ export declare function get2DErrorFactor(spectrum: Entry2D): Zone2DError;
|
|
|
871
841
|
|
|
872
842
|
export declare function getAssignments(input: GetAutoAssignmentInput, options?: GetAssignmentsOptions): Promise<{
|
|
873
843
|
score: any;
|
|
874
|
-
assignment:
|
|
844
|
+
assignment: SpectraDataWithIds_2[];
|
|
875
845
|
}[]>;
|
|
876
846
|
|
|
877
847
|
export declare interface GetAssignmentsOptions {
|
|
@@ -919,8 +889,6 @@ export declare interface GetAssignmentsOptions {
|
|
|
919
889
|
};
|
|
920
890
|
}
|
|
921
891
|
|
|
922
|
-
declare function getAtoms(a: AtomInput[]): AtomOutput[];
|
|
923
|
-
|
|
924
892
|
export declare interface GetAutoAssignmentInput {
|
|
925
893
|
spectra: SpectraData[];
|
|
926
894
|
/**
|
|
@@ -1374,7 +1342,7 @@ export declare interface NMRSignal1D {
|
|
|
1374
1342
|
}
|
|
1375
1343
|
|
|
1376
1344
|
export declare type NMRSignal1DFromPrediction = MakeMandatory<NMRSignal1D, 'nbAtoms' | 'atoms' | 'diaIDs'> & {
|
|
1377
|
-
statistics?:
|
|
1345
|
+
statistics?: XRobustDistributionStats;
|
|
1378
1346
|
metadata?: HOSEPrediction;
|
|
1379
1347
|
};
|
|
1380
1348
|
|
|
@@ -1417,11 +1385,6 @@ declare interface NMRZoneWithIds extends Omit<NMRZone, 'signals' | 'id'> {
|
|
|
1417
1385
|
*/
|
|
1418
1386
|
export declare function normalizeNucleus(nucleus: string): string;
|
|
1419
1387
|
|
|
1420
|
-
declare interface NucleusType {
|
|
1421
|
-
atomicNumber: number;
|
|
1422
|
-
isotope: number;
|
|
1423
|
-
}
|
|
1424
|
-
|
|
1425
1388
|
declare interface NumberField extends Field<number> {
|
|
1426
1389
|
type: 'number';
|
|
1427
1390
|
}
|
|
@@ -1459,7 +1422,7 @@ export declare type OneLetterMultiplet = 's' | 'd' | 't' | 'q' | 'i' | 'h' | 'p'
|
|
|
1459
1422
|
|
|
1460
1423
|
export declare function optimizeSignals(data: DataXY, signals: Signal[], options: OptimizeSignalsOptions): {
|
|
1461
1424
|
delta: number;
|
|
1462
|
-
js:
|
|
1425
|
+
js: Jcoupling_2[];
|
|
1463
1426
|
shape: {
|
|
1464
1427
|
kind: "gaussian" | "lorentzian" | "pseudoVoigt" | "generalizedLorentzian";
|
|
1465
1428
|
fwhm: number;
|
|
@@ -1652,23 +1615,6 @@ export declare function parseCT(json: CTJSONInput, molfile: string, options: {
|
|
|
1652
1615
|
couplings: ParsedCoupling[];
|
|
1653
1616
|
};
|
|
1654
1617
|
|
|
1655
|
-
/**
|
|
1656
|
-
* Interface for coupling data between atoms
|
|
1657
|
-
*/
|
|
1658
|
-
declare interface ParsedCoupling {
|
|
1659
|
-
from: Atom[];
|
|
1660
|
-
to: Atom[];
|
|
1661
|
-
value: number;
|
|
1662
|
-
}
|
|
1663
|
-
|
|
1664
|
-
/**
|
|
1665
|
-
* Interface for chemical shift data
|
|
1666
|
-
*/
|
|
1667
|
-
declare interface ParsedShift {
|
|
1668
|
-
atoms: Atom[];
|
|
1669
|
-
value: number;
|
|
1670
|
-
}
|
|
1671
|
-
|
|
1672
1618
|
export declare interface Peak1D extends Omit<NMRPeak1D, 'id'>, BasePeak {
|
|
1673
1619
|
originalX?: number;
|
|
1674
1620
|
}
|
|
@@ -2930,7 +2876,7 @@ declare function unlink(range: Range_2, options?: UnlinkOptions): Range_2;
|
|
|
2930
2876
|
* @param data
|
|
2931
2877
|
* @param options
|
|
2932
2878
|
*/
|
|
2933
|
-
export declare function xyAutoRangesPicking(data: DataXY<Float64Array>, options: OptionsXYAutoRangesPicking):
|
|
2879
|
+
export declare function xyAutoRangesPicking(data: DataXY<Float64Array>, options: OptionsXYAutoRangesPicking): NMRRange_2[];
|
|
2934
2880
|
|
|
2935
2881
|
/**
|
|
2936
2882
|
* Estimate the diffusion coefficient of an independent component by fitting of imput data with the Stejskal–Tanner equation.
|