nmr-processing 11.5.0 → 11.5.1-pre.1699535415
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 +2 -2
- package/nmr-processing.d.ts +24 -3
- package/nmr-processing.mjs +2 -2
- package/package.json +2 -2
package/nmr-processing.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ import { Molecule } from 'openchemlib/full';
|
|
|
14
14
|
import { NmrData1D } from 'cheminfo-types';
|
|
15
15
|
import { NmrData2D } from 'cheminfo-types';
|
|
16
16
|
import { NmrData2DContent } from 'cheminfo-types';
|
|
17
|
+
import { NmrData2DFt } from 'cheminfo-types';
|
|
17
18
|
import { Nuclei } from 'gyromagnetic-ratio';
|
|
18
19
|
import { OCLMolecule } from 'cheminfo-types';
|
|
19
20
|
import { OptimizePeaksOptions } from 'ml-gsd';
|
|
@@ -181,6 +182,8 @@ export declare function checkMultiplet(string: string, rejected?: string[]): boo
|
|
|
181
182
|
*/
|
|
182
183
|
export declare function checkMultiplicity(multiplicity: string, rejected?: string[]): boolean;
|
|
183
184
|
|
|
185
|
+
export declare function checkNmrData2DRrIr(data: NmrData2DFt): asserts data is NmrData2DRrIr;
|
|
186
|
+
|
|
184
187
|
declare function checkRangeKind(range: Range_2): boolean;
|
|
185
188
|
|
|
186
189
|
declare function checkSignalKinds(range: Range_2, kinds: string[]): boolean;
|
|
@@ -282,13 +285,14 @@ declare type Entry1DApodizationFilter = Partial<Omit<Entry1D, 'info'>> & {
|
|
|
282
285
|
data: Required<NmrData1D>;
|
|
283
286
|
};
|
|
284
287
|
|
|
285
|
-
declare interface Entry2D {
|
|
288
|
+
declare interface Entry2D<T extends NmrData2D = NmrData2D> {
|
|
286
289
|
id?: string;
|
|
287
290
|
zones: Zones;
|
|
288
291
|
info: Record<string, any>;
|
|
292
|
+
customInfo?: Record<string, any>;
|
|
289
293
|
originalInfo?: Record<string, any>;
|
|
290
|
-
data:
|
|
291
|
-
originalData?:
|
|
294
|
+
data: T;
|
|
295
|
+
originalData?: T;
|
|
292
296
|
filters: Filter[];
|
|
293
297
|
}
|
|
294
298
|
|
|
@@ -2372,6 +2376,8 @@ export declare interface MultipletDefinition {
|
|
|
2372
2376
|
|
|
2373
2377
|
export declare const MultiplicityPatterns: MultipletDefinition[];
|
|
2374
2378
|
|
|
2379
|
+
export declare type NmrData2DRrIr = Required<Pick<NmrData2DFt, 'rr' | 'ir'>>;
|
|
2380
|
+
|
|
2375
2381
|
export declare interface NMRPeak1D extends PeakXYWidth {
|
|
2376
2382
|
id?: string;
|
|
2377
2383
|
kind?: string;
|
|
@@ -2731,6 +2737,15 @@ export declare interface PeaksToXYOptions extends OptionsSG1D {
|
|
|
2731
2737
|
|
|
2732
2738
|
export declare function peakToXY(peak: NMRPeak1D, options: PeaksToXYOptions): DataXY<Float64Array>;
|
|
2733
2739
|
|
|
2740
|
+
export declare type PhaseCorrectionIndirectDimensionOptions = PhaseCorrectionOptions & {
|
|
2741
|
+
quad?: 'imag' | 'real';
|
|
2742
|
+
};
|
|
2743
|
+
|
|
2744
|
+
export declare interface PhaseCorrectionOptions {
|
|
2745
|
+
ph0: number;
|
|
2746
|
+
ph1: number;
|
|
2747
|
+
}
|
|
2748
|
+
|
|
2734
2749
|
export declare interface PhaseCorrectionParameters {
|
|
2735
2750
|
ph0: number;
|
|
2736
2751
|
ph1: number;
|
|
@@ -2970,6 +2985,8 @@ declare type Properties = ListField | SelectField | StringField | NumberField |
|
|
|
2970
2985
|
|
|
2971
2986
|
export declare const protonImpurities: DatabaseNMREntry[];
|
|
2972
2987
|
|
|
2988
|
+
declare type Quadrants = 'rr' | 'ir' | 'ri' | 'ii';
|
|
2989
|
+
|
|
2973
2990
|
declare interface Range_2 extends Omit<NMRRange, 'signals' | 'id'> {
|
|
2974
2991
|
id: string;
|
|
2975
2992
|
originalFrom?: number;
|
|
@@ -3761,6 +3778,10 @@ declare function unlink(range: Range_2, options?: UnlinkOptions): Range_2;
|
|
|
3761
3778
|
getZones?: boolean;
|
|
3762
3779
|
}
|
|
3763
3780
|
|
|
3781
|
+
export declare function xyzPhaseCorrectionDirectDimension(data: NmrData2DFt, options: PhaseCorrectionOptions): Required<Pick<NmrData2DFt, "rr" | "ir">> & Partial<NmrData2DFt>;
|
|
3782
|
+
|
|
3783
|
+
export declare function xyzPhaseCorrectionIndirectDimension(data: NmrData2DFt, options: PhaseCorrectionIndirectDimensionOptions): (Required<Pick<NmrData2DFt, Quadrants>> & Partial<NmrData2DFt>) | undefined;
|
|
3784
|
+
|
|
3764
3785
|
export declare interface ZeroFillingOptions {
|
|
3765
3786
|
nbPoints?: number;
|
|
3766
3787
|
factor?: number;
|