nmr-processing 11.10.0 → 11.11.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/nmr-processing.cjs +2 -2
- package/nmr-processing.d.ts +76 -3
- package/nmr-processing.mjs +2 -2
- package/package.json +8 -12
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
|
/**
|
|
@@ -2120,6 +2144,12 @@ export declare interface ImpuritySignal {
|
|
|
2120
2144
|
shift: number;
|
|
2121
2145
|
}
|
|
2122
2146
|
|
|
2147
|
+
export declare interface IndirectDimensionOptions {
|
|
2148
|
+
acquisitionScheme?: string;
|
|
2149
|
+
reverse?: boolean;
|
|
2150
|
+
phaseCorrection?: PhaseCorrection_2;
|
|
2151
|
+
}
|
|
2152
|
+
|
|
2123
2153
|
declare interface Info {
|
|
2124
2154
|
isFid: boolean;
|
|
2125
2155
|
phc1?: number;
|
|
@@ -2408,6 +2438,32 @@ export declare interface MatrixOptions {
|
|
|
2408
2438
|
|
|
2409
2439
|
declare type MatrixProperties = Record<string, Properties>;
|
|
2410
2440
|
|
|
2441
|
+
declare interface ModifiedGaussian<ShapeOption = ModifiedGaussianOptions> {
|
|
2442
|
+
kind: 'modifiedGaussian';
|
|
2443
|
+
options: ShapeOption;
|
|
2444
|
+
}
|
|
2445
|
+
|
|
2446
|
+
declare interface ModifiedGaussianOptions {
|
|
2447
|
+
/**
|
|
2448
|
+
* line broadening value in Hz, a negative value will invert the shape
|
|
2449
|
+
* @default -0.01
|
|
2450
|
+
*/
|
|
2451
|
+
lineBroadening?: number;
|
|
2452
|
+
/**
|
|
2453
|
+
* ModifiedGaussian Broadening, (0 - 1] define the position of the top of the gaussian shape.
|
|
2454
|
+
* @default 0.01
|
|
2455
|
+
*/
|
|
2456
|
+
gaussianBroadening?: number;
|
|
2457
|
+
/**
|
|
2458
|
+
* increment value in time or the independent value
|
|
2459
|
+
*/
|
|
2460
|
+
dwellTime: number;
|
|
2461
|
+
/**
|
|
2462
|
+
* size of the shape function
|
|
2463
|
+
*/
|
|
2464
|
+
length: number;
|
|
2465
|
+
}
|
|
2466
|
+
|
|
2411
2467
|
export declare interface MultipletDefinition {
|
|
2412
2468
|
label: string;
|
|
2413
2469
|
value: string;
|
|
@@ -2783,6 +2839,18 @@ export declare interface PeaksToXYOptions extends OptionsSG1D {
|
|
|
2783
2839
|
|
|
2784
2840
|
export declare function peakToXY(peak: NMRPeak1D, options: PeaksToXYOptions): DataXY<Float64Array>;
|
|
2785
2841
|
|
|
2842
|
+
declare interface PhaseCorrection {
|
|
2843
|
+
mode?: string;
|
|
2844
|
+
ph0?: number;
|
|
2845
|
+
ph1?: number;
|
|
2846
|
+
}
|
|
2847
|
+
|
|
2848
|
+
declare interface PhaseCorrection_2 {
|
|
2849
|
+
mode?: string;
|
|
2850
|
+
ph0?: number;
|
|
2851
|
+
ph1?: number;
|
|
2852
|
+
}
|
|
2853
|
+
|
|
2786
2854
|
declare interface PhaseCorrectionHorizontalOptions {
|
|
2787
2855
|
ph0: number;
|
|
2788
2856
|
ph1: number;
|
|
@@ -3646,7 +3714,7 @@ declare function unlink(range: Range_2, options?: UnlinkOptions): Range_2;
|
|
|
3646
3714
|
|
|
3647
3715
|
export declare function updateRangesRelativeValues(spectrum: Entry1D, forceCalculateIntegral?: boolean): void;
|
|
3648
3716
|
|
|
3649
|
-
declare type WindowFunctions = Exponential | LorentToGauss | SineBell | Traf;
|
|
3717
|
+
export declare type WindowFunctions = Exponential | LorentToGauss | SineBell | Traf | ModifiedGaussian;
|
|
3650
3718
|
|
|
3651
3719
|
/**
|
|
3652
3720
|
* Predict back points by singular value decomposition.
|
|
@@ -3682,6 +3750,11 @@ declare function unlink(range: Range_2, options?: UnlinkOptions): Range_2;
|
|
|
3682
3750
|
*/
|
|
3683
3751
|
export declare function xyAutoRangesPicking(data: DataXY, options: OptionsXYAutoRangesPicking): NMRRange[];
|
|
3684
3752
|
|
|
3753
|
+
export declare function xyCalculateT1(data: DataXY, options?: CalculateT1Options): {
|
|
3754
|
+
relaxationT1: number;
|
|
3755
|
+
fullMagnetization: number;
|
|
3756
|
+
};
|
|
3757
|
+
|
|
3685
3758
|
export declare function xyPeaksOptimization<T extends PeakXYWidth>(data: DataXY, peaks: T[], options: XYPeaksOptimizationOptions): (T extends {
|
|
3686
3759
|
id: string;
|
|
3687
3760
|
} ? GSDPeakOptimizedID : GSDPeakOptimized)[];
|