nmr-processing 12.1.1 → 12.3.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 +1 -1
- package/nmr-processing.d.ts +48 -0
- package/nmr-processing.mjs +1 -1
- package/package.json +7 -1
package/nmr-processing.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import BaseRegression from 'ml-regression-base';
|
|
1
2
|
import { DataXReIm } from 'ml-spectra-processing';
|
|
2
3
|
import { DataXY } from 'cheminfo-types';
|
|
3
4
|
import { DoubleArray } from 'cheminfo-types';
|
|
5
|
+
import ExponentialRegression from 'ml-regression-exponential';
|
|
4
6
|
import type { FilterXYType } from 'ml-signal-processing';
|
|
5
7
|
import { FromTo } from 'cheminfo-types';
|
|
6
8
|
import { GSDOptions } from 'ml-gsd';
|
|
@@ -16,6 +18,7 @@ import { NmrData2D } from 'cheminfo-types';
|
|
|
16
18
|
import { NmrData2DContent } from 'cheminfo-types';
|
|
17
19
|
import { NmrData2DFt } from 'cheminfo-types';
|
|
18
20
|
import { Nuclei } from 'gyromagnetic-ratio';
|
|
21
|
+
import { NumberArray } from 'cheminfo-types';
|
|
19
22
|
import { OCLMolecule } from 'cheminfo-types';
|
|
20
23
|
import { OptimizePeaksOptions } from 'ml-gsd';
|
|
21
24
|
import { OptionsSG1D } from 'spectrum-generator';
|
|
@@ -100,6 +103,10 @@ declare interface ApplyFilterOptions {
|
|
|
100
103
|
|
|
101
104
|
declare type AtomTypes = 'H' | 'C';
|
|
102
105
|
|
|
106
|
+
export declare interface AutoPhaseCorrection2D {
|
|
107
|
+
threshold?: number;
|
|
108
|
+
}
|
|
109
|
+
|
|
103
110
|
export declare interface AutoPhaseCorrectionOptions {
|
|
104
111
|
minRegSize?: number;
|
|
105
112
|
maxDistanceToJoin?: number;
|
|
@@ -2449,6 +2456,26 @@ export declare interface MatrixOptions {
|
|
|
2449
2456
|
|
|
2450
2457
|
declare type MatrixProperties = Record<string, Properties>;
|
|
2451
2458
|
|
|
2459
|
+
export declare function matrixToBoxPlot(input: NumberArray[], options?: {
|
|
2460
|
+
colors?: string[];
|
|
2461
|
+
}): {
|
|
2462
|
+
color: any[];
|
|
2463
|
+
max: NumberArray;
|
|
2464
|
+
min: NumberArray;
|
|
2465
|
+
median: NumberArray;
|
|
2466
|
+
q1: NumberArray;
|
|
2467
|
+
q3: NumberArray;
|
|
2468
|
+
};
|
|
2469
|
+
|
|
2470
|
+
export declare function matrixToStocsy(matrix: NumberArray[], index: number, options?: MatrixToStocsyOptions): {
|
|
2471
|
+
y: Float64Array;
|
|
2472
|
+
color: any[];
|
|
2473
|
+
};
|
|
2474
|
+
|
|
2475
|
+
declare interface MatrixToStocsyOptions {
|
|
2476
|
+
colors?: string[];
|
|
2477
|
+
}
|
|
2478
|
+
|
|
2452
2479
|
declare interface ModifiedGaussian<ShapeOption = ModifiedGaussianOptions> {
|
|
2453
2480
|
kind: 'modifiedGaussian';
|
|
2454
2481
|
options: ShapeOption;
|
|
@@ -3701,6 +3728,13 @@ export declare interface SumOptions {
|
|
|
3701
3728
|
moleculeId?: string;
|
|
3702
3729
|
}
|
|
3703
3730
|
|
|
3731
|
+
declare class T1Regression extends BaseRegression {
|
|
3732
|
+
fullMagnetization: number;
|
|
3733
|
+
relaxationT1: number;
|
|
3734
|
+
constructor(fullMagnetization: number, relaxationT1: number);
|
|
3735
|
+
_predict(x: number): number;
|
|
3736
|
+
}
|
|
3737
|
+
|
|
3704
3738
|
export declare type Targets = Record<string, NMRRangeWithIntegration>;
|
|
3705
3739
|
|
|
3706
3740
|
declare interface Traf<ShapeOption = TrafOptions> {
|
|
@@ -3797,6 +3831,13 @@ declare function unlink(range: Range_2, options?: UnlinkOptions): Range_2;
|
|
|
3797
3831
|
export declare function xyCalculateT1(data: DataXY, options?: CalculateT1Options): {
|
|
3798
3832
|
relaxationT1: number;
|
|
3799
3833
|
fullMagnetization: number;
|
|
3834
|
+
regression: T1Regression;
|
|
3835
|
+
};
|
|
3836
|
+
|
|
3837
|
+
export declare function xyKineticFirstOrder(data: DataXY): {
|
|
3838
|
+
regression: ExponentialRegression;
|
|
3839
|
+
rateConstant: number;
|
|
3840
|
+
initialConcentration: number;
|
|
3800
3841
|
};
|
|
3801
3842
|
|
|
3802
3843
|
export declare function xyPeaksOptimization<T extends PeakXYWidth>(data: DataXY, peaks: T[], options: XYPeaksOptimizationOptions): (T extends {
|
|
@@ -3810,6 +3851,13 @@ declare function unlink(range: Range_2, options?: UnlinkOptions): Range_2;
|
|
|
3810
3851
|
frequency: number;
|
|
3811
3852
|
}
|
|
3812
3853
|
|
|
3854
|
+
/**
|
|
3855
|
+
* Bidimensional automatic phase correction, based in the idea to see the spectrum as a bitmap,
|
|
3856
|
+
* where the number of white pixels will be bigger in a phased spectrum (whitening concept). Further information can be found in the
|
|
3857
|
+
* publication of Balacco and Cobas (DOI: {@link https://doi.org/10.1002/mrc.2394}). This method use a incremental search instead of simplex algorithm.
|
|
3858
|
+
*/
|
|
3859
|
+
export declare function xyzAutoPhaseCorrection(data: NmrData2DFt, options?: AutoPhaseCorrection2D): Required<PhaseCorrectionTwoDOptions>;
|
|
3860
|
+
|
|
3813
3861
|
export declare function xyzAutoSignalsPicking(spectraData: NmrData2DContent, options: XYZAutoSignalsPickingOptions): NMRSignal2DWithID<matrixPeakFinders.Peak2D & {
|
|
3814
3862
|
id: string;
|
|
3815
3863
|
}>[];
|