nmr-processing 11.8.0 → 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 +38 -6
- 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
|
}
|
|
@@ -244,10 +267,11 @@ export declare interface DataReIm {
|
|
|
244
267
|
}
|
|
245
268
|
|
|
246
269
|
export declare interface DataResurrect {
|
|
247
|
-
|
|
270
|
+
info: {
|
|
248
271
|
solvent?: string;
|
|
249
|
-
frequency
|
|
250
|
-
|
|
272
|
+
frequency: number;
|
|
273
|
+
dimension: 1;
|
|
274
|
+
nucleus: string;
|
|
251
275
|
};
|
|
252
276
|
ranges: NMRRange[];
|
|
253
277
|
acsString: string;
|
|
@@ -521,6 +545,14 @@ export declare interface GetAutoAssignmentInput {
|
|
|
521
545
|
molecule: Molecule;
|
|
522
546
|
}
|
|
523
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
|
+
|
|
524
556
|
export declare function getDatabase(url?: string, options?: {
|
|
525
557
|
/**
|
|
526
558
|
* @default 'tsv'
|
|
@@ -3141,12 +3173,12 @@ declare interface RestrictionByCS1D {
|
|
|
3141
3173
|
useChemicalShiftScore: boolean;
|
|
3142
3174
|
}
|
|
3143
3175
|
|
|
3144
|
-
export declare
|
|
3176
|
+
export declare function resurrect(acsString: string, options?: ResurrectOptions): DataResurrect;
|
|
3177
|
+
|
|
3178
|
+
export declare interface ResurrectOptions {
|
|
3145
3179
|
logger?: Logger;
|
|
3146
3180
|
}
|
|
3147
3181
|
|
|
3148
|
-
export declare function resurrect(acsString: string, options?: ResurectOptions): any;
|
|
3149
|
-
|
|
3150
3182
|
declare interface SelectField extends Field<any> {
|
|
3151
3183
|
type: 'select';
|
|
3152
3184
|
choices: any[];
|