nmr-processing 11.8.1 → 11.9.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 +31 -0
- package/nmr-processing.mjs +2 -2
- package/package.json +3 -2
package/nmr-processing.d.ts
CHANGED
|
@@ -151,6 +151,29 @@ export declare interface BaselineCorrectionZone {
|
|
|
151
151
|
id: string;
|
|
152
152
|
}
|
|
153
153
|
|
|
154
|
+
declare interface BaselineZoneOptions {
|
|
155
|
+
/**
|
|
156
|
+
* The width factor to use to enlarge the peaks width
|
|
157
|
+
* @default 20
|
|
158
|
+
*/
|
|
159
|
+
widthFactor?: number;
|
|
160
|
+
/**
|
|
161
|
+
* The number of zones to find
|
|
162
|
+
* @default 5
|
|
163
|
+
*/
|
|
164
|
+
nbZones?: number;
|
|
165
|
+
/**
|
|
166
|
+
* The space (in percent) from the side that should not be considered
|
|
167
|
+
* @default 0.05
|
|
168
|
+
*/
|
|
169
|
+
padding?: 0.05;
|
|
170
|
+
/**
|
|
171
|
+
* The tolerance (in percent) to select the zone in which the more points are present
|
|
172
|
+
* @default 0.05
|
|
173
|
+
*/
|
|
174
|
+
tolerance?: 0.05;
|
|
175
|
+
}
|
|
176
|
+
|
|
154
177
|
declare interface BasePeak {
|
|
155
178
|
id: string;
|
|
156
179
|
}
|
|
@@ -522,6 +545,14 @@ export declare interface GetAutoAssignmentInput {
|
|
|
522
545
|
molecule: Molecule;
|
|
523
546
|
}
|
|
524
547
|
|
|
548
|
+
/**
|
|
549
|
+
* Need to find where is the baseline (so in fact only noise)
|
|
550
|
+
* The approach is to find the peaks using GSD and then to enlarge the peaks
|
|
551
|
+
* to determine the zones where the baseline is not present
|
|
552
|
+
* @param data
|
|
553
|
+
*/
|
|
554
|
+
export declare function getBaselineZones(data: NmrData1D, options?: BaselineZoneOptions): BaselineCorrectionZone[];
|
|
555
|
+
|
|
525
556
|
export declare function getDatabase(url?: string, options?: {
|
|
526
557
|
/**
|
|
527
558
|
* @default 'tsv'
|