@zakodium/nmr-types 0.2.1 → 0.3.1
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/dist/nmr-types.d.ts +30 -6
- package/package.json +3 -3
package/dist/nmr-types.d.ts
CHANGED
|
@@ -331,7 +331,7 @@ export declare interface Integral {
|
|
|
331
331
|
to: number;
|
|
332
332
|
absolute: number;
|
|
333
333
|
integral: number;
|
|
334
|
-
kind:
|
|
334
|
+
kind: SignalKind;
|
|
335
335
|
}
|
|
336
336
|
|
|
337
337
|
export declare interface Integrals {
|
|
@@ -340,11 +340,33 @@ export declare interface Integrals {
|
|
|
340
340
|
}
|
|
341
341
|
|
|
342
342
|
export declare interface Jcoupling {
|
|
343
|
+
/**
|
|
344
|
+
* The value of the coupling in Hz
|
|
345
|
+
*/
|
|
343
346
|
coupling: number;
|
|
344
347
|
atoms?: number[];
|
|
345
348
|
assignment?: string | string[];
|
|
346
349
|
diaIDs?: string[];
|
|
350
|
+
/**
|
|
351
|
+
* The spin of the nucleus involved in the coupling
|
|
352
|
+
* most of the time it is 1/2 (1H, 13C, 15N, etc.)
|
|
353
|
+
* but typically for [2H] it is 1
|
|
354
|
+
*/
|
|
355
|
+
spin?: number;
|
|
356
|
+
/**
|
|
357
|
+
* With how many other nuclei this coupling is observed
|
|
358
|
+
*/
|
|
359
|
+
nbCouplings?: number;
|
|
360
|
+
/**
|
|
361
|
+
* The multiplicity label associated with the coupling like "d", "t", "q", etc.
|
|
362
|
+
*/
|
|
347
363
|
multiplicity?: string;
|
|
364
|
+
/**
|
|
365
|
+
* The length of the coupling path (number of bonds)
|
|
366
|
+
* for example for a geminal coupling it is 2
|
|
367
|
+
* This is important when you have 2 couplings with the same diaIDs but different path lengths
|
|
368
|
+
* like in the case of 1,2-disubstituted benzene (same substitutant)
|
|
369
|
+
*/
|
|
348
370
|
pathLength?: number;
|
|
349
371
|
}
|
|
350
372
|
|
|
@@ -391,7 +413,7 @@ export declare type MatrixProperties = Record<string, Properties>;
|
|
|
391
413
|
|
|
392
414
|
export declare interface NMRPeak1D extends PeakXYWidth {
|
|
393
415
|
id?: string;
|
|
394
|
-
kind?:
|
|
416
|
+
kind?: SignalKind;
|
|
395
417
|
shape?: Shape1D;
|
|
396
418
|
originalX?: number;
|
|
397
419
|
}
|
|
@@ -402,7 +424,7 @@ export declare interface NMRRange {
|
|
|
402
424
|
id?: string;
|
|
403
425
|
assignment?: string;
|
|
404
426
|
diaIDs?: string[];
|
|
405
|
-
kind?:
|
|
427
|
+
kind?: SignalKind;
|
|
406
428
|
pubIntegral?: number;
|
|
407
429
|
integration?: number;
|
|
408
430
|
multiplicity?: string;
|
|
@@ -415,7 +437,7 @@ export declare interface NMRSignal1D {
|
|
|
415
437
|
js?: Jcoupling[];
|
|
416
438
|
atoms?: number[];
|
|
417
439
|
assignment?: string;
|
|
418
|
-
kind?:
|
|
440
|
+
kind?: SignalKind;
|
|
419
441
|
multiplicity?: string;
|
|
420
442
|
diaIDs?: string[];
|
|
421
443
|
nbAtoms?: number;
|
|
@@ -572,7 +594,7 @@ export declare interface ShiftXOptions {
|
|
|
572
594
|
|
|
573
595
|
export declare interface Signal {
|
|
574
596
|
id: string;
|
|
575
|
-
kind?:
|
|
597
|
+
kind?: SignalKind;
|
|
576
598
|
}
|
|
577
599
|
|
|
578
600
|
export declare interface Signal1D extends Required<Pick<NMRSignal1D, ObjectKeys>>, Omit<NMRSignal1D, ObjectKeys> {
|
|
@@ -596,6 +618,8 @@ declare interface SignalAxis {
|
|
|
596
618
|
originalDelta: number;
|
|
597
619
|
}
|
|
598
620
|
|
|
621
|
+
export declare type SignalKind = 'unspecified' | 'unknown' | 'signal' | 'residualSolvent' | 'reference' | 'solvent' | 'impurity' | 'standard' | 'artifact' | 'p1' | 'p2' | 'p3';
|
|
622
|
+
|
|
599
623
|
export declare interface SignalProcessingFilter extends BaseFilter {
|
|
600
624
|
name: 'signalProcessing';
|
|
601
625
|
value: MatrixOptions<FilterOptions>;
|
|
@@ -685,7 +709,7 @@ export declare interface Zone {
|
|
|
685
709
|
x: ZoneAxis;
|
|
686
710
|
y: ZoneAxis;
|
|
687
711
|
signals: Signal2D[];
|
|
688
|
-
kind?:
|
|
712
|
+
kind?: SignalKind;
|
|
689
713
|
assignment?: string;
|
|
690
714
|
}
|
|
691
715
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zakodium/nmr-types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Types related to NMR data processing.",
|
|
5
5
|
"author": "Zakodium Sàrl",
|
|
6
6
|
"license": "CC-BY-NC-SA-4.0",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"esbuild": "^0.25.10",
|
|
29
29
|
"rimraf": "^6.0.1",
|
|
30
30
|
"typescript": "~5.9.3",
|
|
31
|
-
"vitest": "^
|
|
31
|
+
"vitest": "^4.0.1"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"ml-peak-shape-generator": "^4.2.0",
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"volta": {
|
|
39
39
|
"extends": "../../../package.json"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "b10db9c8821bb100501d3d2373ac16a4eac7b345"
|
|
42
42
|
}
|