nmr-processing 11.10.1 → 11.11.1-pre.1709824354
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 +102 -10
- package/nmr-processing.mjs +2 -2
- package/package.json +10 -13
package/nmr-processing.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import { GSDPeakOptimized } from 'ml-gsd';
|
|
|
8
8
|
import { GSDPeakOptimizedID } from 'ml-gsd';
|
|
9
9
|
import { JoinBroadPeaksOptions } from 'ml-gsd';
|
|
10
10
|
import { Logger } from 'cheminfo-types';
|
|
11
|
-
import
|
|
11
|
+
import { Matrix } from 'ml-matrix';
|
|
12
12
|
import * as matrixPeakFinders from 'ml-matrix-peaks-finder';
|
|
13
13
|
import { Molecule } from 'openchemlib/full';
|
|
14
14
|
import { NmrData1D } from 'cheminfo-types';
|
|
@@ -187,6 +187,10 @@ declare interface BooleanField extends Field<boolean> {
|
|
|
187
187
|
type: 'boolean';
|
|
188
188
|
}
|
|
189
189
|
|
|
190
|
+
declare interface CalculateT1Options {
|
|
191
|
+
optimization?: any;
|
|
192
|
+
}
|
|
193
|
+
|
|
190
194
|
export declare const carbonImpurities: DatabaseNMREntry[];
|
|
191
195
|
|
|
192
196
|
/**
|
|
@@ -291,6 +295,13 @@ export declare const DatumKind: {
|
|
|
291
295
|
|
|
292
296
|
declare function deleteFilter(datum: Entry1D | Entry2D, id?: string): void;
|
|
293
297
|
|
|
298
|
+
export declare interface DirectDimensionOptions {
|
|
299
|
+
acquisitionScheme?: string;
|
|
300
|
+
reverse?: boolean;
|
|
301
|
+
digitalFilterValue?: number;
|
|
302
|
+
phaseCorrection?: PhaseCorrection;
|
|
303
|
+
}
|
|
304
|
+
|
|
294
305
|
declare function enableFilter(datum: Entry1D | Entry2D, id: string | null, checked: boolean | null, filters?: Filter[]): void;
|
|
295
306
|
|
|
296
307
|
declare type Entry = Entry1D | Entry2D;
|
|
@@ -346,6 +357,19 @@ declare interface ExponentialOptions {
|
|
|
346
357
|
dw: number;
|
|
347
358
|
}
|
|
348
359
|
|
|
360
|
+
export declare function fftDirectDimension(data: {
|
|
361
|
+
re: DoubleArray[];
|
|
362
|
+
im: DoubleArray[];
|
|
363
|
+
}, options?: DirectDimensionOptions): {
|
|
364
|
+
re: Matrix;
|
|
365
|
+
im: Matrix;
|
|
366
|
+
};
|
|
367
|
+
|
|
368
|
+
export declare function fftIndirectDimension(data: {
|
|
369
|
+
re: DoubleArray[] | Matrix;
|
|
370
|
+
im: DoubleArray[] | Matrix;
|
|
371
|
+
}, options: IndirectDimensionOptions): Record<string, Matrix>;
|
|
372
|
+
|
|
349
373
|
declare interface Field<T> extends BaseField {
|
|
350
374
|
default: T;
|
|
351
375
|
}
|
|
@@ -401,7 +425,7 @@ export { FiltersManager }
|
|
|
401
425
|
*/
|
|
402
426
|
export declare function findMultiplet(name: string): MultipletDefinition | undefined;
|
|
403
427
|
|
|
404
|
-
declare type FlexibleWindowFunctions = Exponential<Partial<ExponentialOptions>> | LorentToGauss<Partial<LorentzToGaussOptions>> | SineBell<Partial<SineBellOptions>> | Traf<Partial<TrafOptions>>;
|
|
428
|
+
export declare type FlexibleWindowFunctions = Exponential<Partial<ExponentialOptions>> | LorentToGauss<Partial<LorentzToGaussOptions>> | SineBell<Partial<SineBellOptions>> | Traf<Partial<TrafOptions>> | ModifiedGaussian<Partial<ModifiedGaussianOptions>>;
|
|
405
429
|
|
|
406
430
|
export declare interface ForwardLPOptions {
|
|
407
431
|
/**
|
|
@@ -599,6 +623,11 @@ export declare interface GetPeakListOptions extends GSDOptions, OptimizePeaksOpt
|
|
|
599
623
|
* frequency used to convert width and fwhm to Hz
|
|
600
624
|
*/
|
|
601
625
|
frequency: number;
|
|
626
|
+
/**
|
|
627
|
+
* maximum absolute value of the second derivative of the intensity array, if it is not passed
|
|
628
|
+
* the function will calculate it.
|
|
629
|
+
*/
|
|
630
|
+
maxAbsDdY?: number;
|
|
602
631
|
}
|
|
603
632
|
|
|
604
633
|
export declare function getShiftX(spectrum: Entry1D): number;
|
|
@@ -2120,6 +2149,12 @@ export declare interface ImpuritySignal {
|
|
|
2120
2149
|
shift: number;
|
|
2121
2150
|
}
|
|
2122
2151
|
|
|
2152
|
+
export declare interface IndirectDimensionOptions {
|
|
2153
|
+
acquisitionScheme?: string;
|
|
2154
|
+
reverse?: boolean;
|
|
2155
|
+
phaseCorrection?: PhaseCorrection_2;
|
|
2156
|
+
}
|
|
2157
|
+
|
|
2123
2158
|
declare interface Info {
|
|
2124
2159
|
isFid: boolean;
|
|
2125
2160
|
phc1?: number;
|
|
@@ -2408,6 +2443,32 @@ export declare interface MatrixOptions {
|
|
|
2408
2443
|
|
|
2409
2444
|
declare type MatrixProperties = Record<string, Properties>;
|
|
2410
2445
|
|
|
2446
|
+
declare interface ModifiedGaussian<ShapeOption = ModifiedGaussianOptions> {
|
|
2447
|
+
kind: 'modifiedGaussian';
|
|
2448
|
+
options: ShapeOption;
|
|
2449
|
+
}
|
|
2450
|
+
|
|
2451
|
+
declare interface ModifiedGaussianOptions {
|
|
2452
|
+
/**
|
|
2453
|
+
* line broadening value in Hz, a negative value will invert the shape
|
|
2454
|
+
* @default -0.01
|
|
2455
|
+
*/
|
|
2456
|
+
lineBroadening?: number;
|
|
2457
|
+
/**
|
|
2458
|
+
* ModifiedGaussian Broadening, (0 - 1] define the position of the top of the gaussian shape.
|
|
2459
|
+
* @default 0.01
|
|
2460
|
+
*/
|
|
2461
|
+
gaussianBroadening?: number;
|
|
2462
|
+
/**
|
|
2463
|
+
* increment value in time or the independent value
|
|
2464
|
+
*/
|
|
2465
|
+
dwellTime: number;
|
|
2466
|
+
/**
|
|
2467
|
+
* size of the shape function
|
|
2468
|
+
*/
|
|
2469
|
+
length: number;
|
|
2470
|
+
}
|
|
2471
|
+
|
|
2411
2472
|
export declare interface MultipletDefinition {
|
|
2412
2473
|
label: string;
|
|
2413
2474
|
value: string;
|
|
@@ -2783,6 +2844,18 @@ export declare interface PeaksToXYOptions extends OptionsSG1D {
|
|
|
2783
2844
|
|
|
2784
2845
|
export declare function peakToXY(peak: NMRPeak1D, options: PeaksToXYOptions): DataXY<Float64Array>;
|
|
2785
2846
|
|
|
2847
|
+
declare interface PhaseCorrection {
|
|
2848
|
+
mode?: string;
|
|
2849
|
+
ph0?: number;
|
|
2850
|
+
ph1?: number;
|
|
2851
|
+
}
|
|
2852
|
+
|
|
2853
|
+
declare interface PhaseCorrection_2 {
|
|
2854
|
+
mode?: string;
|
|
2855
|
+
ph0?: number;
|
|
2856
|
+
ph1?: number;
|
|
2857
|
+
}
|
|
2858
|
+
|
|
2786
2859
|
declare interface PhaseCorrectionHorizontalOptions {
|
|
2787
2860
|
ph0: number;
|
|
2788
2861
|
ph1: number;
|
|
@@ -3055,7 +3128,7 @@ export declare function rangeFromSignal(signal: NMRSignal1D, options?: RangeFrom
|
|
|
3055
3128
|
export declare interface RangeFromSignalOptions {
|
|
3056
3129
|
/**
|
|
3057
3130
|
* nucleus
|
|
3058
|
-
* @default '
|
|
3131
|
+
* @default '1H'
|
|
3059
3132
|
*/
|
|
3060
3133
|
nucleus?: string;
|
|
3061
3134
|
/**
|
|
@@ -3064,7 +3137,7 @@ export declare interface RangeFromSignalOptions {
|
|
|
3064
3137
|
*/
|
|
3065
3138
|
frequency?: number;
|
|
3066
3139
|
/**
|
|
3067
|
-
* tolerance to the halfWidth, default depends
|
|
3140
|
+
* tolerance to the halfWidth, default depends on the nucleus
|
|
3068
3141
|
*/
|
|
3069
3142
|
tolerance?: number;
|
|
3070
3143
|
}
|
|
@@ -3111,11 +3184,21 @@ export declare interface RangesToACSOptions {
|
|
|
3111
3184
|
solvent?: string;
|
|
3112
3185
|
}
|
|
3113
3186
|
|
|
3114
|
-
export declare function rangesToXY(ranges: NMRRange[], options?:
|
|
3115
|
-
x:
|
|
3187
|
+
export declare function rangesToXY(ranges: NMRRange[], options?: RangesToXYOptions): {
|
|
3188
|
+
x: Float64Array;
|
|
3116
3189
|
y: Float64Array;
|
|
3117
3190
|
};
|
|
3118
3191
|
|
|
3192
|
+
export declare interface RangesToXYOptions {
|
|
3193
|
+
nucleus?: string;
|
|
3194
|
+
frequency?: number;
|
|
3195
|
+
nbPoints?: number;
|
|
3196
|
+
lineWidth?: number;
|
|
3197
|
+
shape?: Shape1D;
|
|
3198
|
+
from?: number;
|
|
3199
|
+
to?: number;
|
|
3200
|
+
}
|
|
3201
|
+
|
|
3119
3202
|
export declare interface RangeToXYOptions {
|
|
3120
3203
|
/**
|
|
3121
3204
|
* frequency observed
|
|
@@ -3338,7 +3421,11 @@ export declare function signalsToFID(signals: NMRSignal1D[], options: SignalsToF
|
|
|
3338
3421
|
re: DoubleArray;
|
|
3339
3422
|
im: DoubleArray;
|
|
3340
3423
|
} | {
|
|
3341
|
-
re: DoubleArray;
|
|
3424
|
+
re: DoubleArray; /**
|
|
3425
|
+
* at the end of the superposition of all component, an exponential apodization will be applied
|
|
3426
|
+
* in order to have FID like shape.
|
|
3427
|
+
* @default 1
|
|
3428
|
+
*/
|
|
3342
3429
|
im: DoubleArray;
|
|
3343
3430
|
};
|
|
3344
3431
|
|
|
@@ -3646,7 +3733,7 @@ declare function unlink(range: Range_2, options?: UnlinkOptions): Range_2;
|
|
|
3646
3733
|
|
|
3647
3734
|
export declare function updateRangesRelativeValues(spectrum: Entry1D, forceCalculateIntegral?: boolean): void;
|
|
3648
3735
|
|
|
3649
|
-
declare type WindowFunctions = Exponential | LorentToGauss | SineBell | Traf;
|
|
3736
|
+
export declare type WindowFunctions = Exponential | LorentToGauss | SineBell | Traf | ModifiedGaussian;
|
|
3650
3737
|
|
|
3651
3738
|
/**
|
|
3652
3739
|
* Predict back points by singular value decomposition.
|
|
@@ -3666,7 +3753,7 @@ declare function unlink(range: Range_2, options?: UnlinkOptions): Range_2;
|
|
|
3666
3753
|
predicted: Float64Array;
|
|
3667
3754
|
};
|
|
3668
3755
|
|
|
3669
|
-
export declare function xyAutoPeaksPicking(data: DataXY
|
|
3756
|
+
export declare function xyAutoPeaksPicking(data: DataXY<Float64Array>, options: OptionsXYAutoPeaksPicking): NMRPeak1DWithShapeID[];
|
|
3670
3757
|
|
|
3671
3758
|
/**
|
|
3672
3759
|
* error for default windowSize computation
|
|
@@ -3680,7 +3767,12 @@ declare function unlink(range: Range_2, options?: UnlinkOptions): Range_2;
|
|
|
3680
3767
|
/**
|
|
3681
3768
|
* Detect peaks, optimize parameters and compile multiplicity if required.
|
|
3682
3769
|
*/
|
|
3683
|
-
export declare function xyAutoRangesPicking(data: DataXY
|
|
3770
|
+
export declare function xyAutoRangesPicking(data: DataXY<Float64Array>, options: OptionsXYAutoRangesPicking): NMRRange[];
|
|
3771
|
+
|
|
3772
|
+
export declare function xyCalculateT1(data: DataXY, options?: CalculateT1Options): {
|
|
3773
|
+
relaxationT1: number;
|
|
3774
|
+
fullMagnetization: number;
|
|
3775
|
+
};
|
|
3684
3776
|
|
|
3685
3777
|
export declare function xyPeaksOptimization<T extends PeakXYWidth>(data: DataXY, peaks: T[], options: XYPeaksOptimizationOptions): (T extends {
|
|
3686
3778
|
id: string;
|