nmr-processing 17.2.0 → 17.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 +3 -3
- package/nmr-processing.d.ts +11 -26
- package/nmr-processing.mjs +3 -3
- package/package.json +11 -11
package/nmr-processing.d.ts
CHANGED
|
@@ -30,6 +30,7 @@ import type { PeakXYWidth } from 'cheminfo-types';
|
|
|
30
30
|
import { PointXY } from 'cheminfo-types';
|
|
31
31
|
import type { Shape1D } from 'ml-peak-shape-generator';
|
|
32
32
|
import type { TopicMolecule } from 'openchemlib-utils';
|
|
33
|
+
import type { XDistributionStats } from 'ml-spectra-processing';
|
|
33
34
|
import type { XYEquallySpacedOptions } from 'ml-spectra-processing';
|
|
34
35
|
import type { XYNumber } from 'spectrum-generator';
|
|
35
36
|
|
|
@@ -452,7 +453,7 @@ declare interface CTSignal {
|
|
|
452
453
|
atoms: number[];
|
|
453
454
|
}
|
|
454
455
|
|
|
455
|
-
export declare type DataBaseLevelEntry = number | [number] | [number, number, number, number | null, number] | undefined |
|
|
456
|
+
export declare type DataBaseLevelEntry = number | [number] | [number, number, number, number | null, number] | undefined | XDistributionStats;
|
|
456
457
|
|
|
457
458
|
export declare type DataBaseLevelStructure = Record<string, DataBaseLevelEntry>;
|
|
458
459
|
|
|
@@ -1004,25 +1005,9 @@ declare interface HOSEPrediction {
|
|
|
1004
1005
|
*/
|
|
1005
1006
|
sphere: number;
|
|
1006
1007
|
/**
|
|
1007
|
-
*
|
|
1008
|
-
* are the statistics for this specific HOSE code used for the prediction.
|
|
1008
|
+
* The HOSE code used to make the prediction.
|
|
1009
1009
|
*/
|
|
1010
|
-
|
|
1011
|
-
}
|
|
1012
|
-
|
|
1013
|
-
/**
|
|
1014
|
-
* When predicted signals we obtain in some case statistics about the signals.
|
|
1015
|
-
* This allows to determine what are the expected range of chemical shifts to expect.
|
|
1016
|
-
*/
|
|
1017
|
-
export declare interface HOSEPredictionStatistics {
|
|
1018
|
-
mean: number;
|
|
1019
|
-
min: number;
|
|
1020
|
-
q1?: number;
|
|
1021
|
-
median: number;
|
|
1022
|
-
q3?: number;
|
|
1023
|
-
max: number;
|
|
1024
|
-
sd?: number;
|
|
1025
|
-
nb: number;
|
|
1010
|
+
idCode: string;
|
|
1026
1011
|
}
|
|
1027
1012
|
|
|
1028
1013
|
declare type ID = string;
|
|
@@ -1386,9 +1371,13 @@ export declare interface NMRSignal1D {
|
|
|
1386
1371
|
nbAtoms?: number;
|
|
1387
1372
|
integration?: number;
|
|
1388
1373
|
peaks?: NMRPeak1D[];
|
|
1389
|
-
prediction?: Prediction;
|
|
1390
1374
|
}
|
|
1391
1375
|
|
|
1376
|
+
export declare type NMRSignal1DFromPrediction = MakeMandatory<NMRSignal1D, 'nbAtoms' | 'atoms' | 'diaIDs'> & {
|
|
1377
|
+
statistics?: XDistributionStats;
|
|
1378
|
+
metadata?: HOSEPrediction;
|
|
1379
|
+
};
|
|
1380
|
+
|
|
1392
1381
|
export declare type NMRSignal1DWithAtomsAndDiaIDs = MakeMandatory<NMRSignal1D, 'atoms' | 'diaIDs' | 'nbAtoms'>;
|
|
1393
1382
|
|
|
1394
1383
|
export declare type NMRSignal1DWithId = MakeMandatory<NMRSignal1D, 'id'>;
|
|
@@ -2048,10 +2037,6 @@ declare interface PredictHSQCOptions {
|
|
|
2048
2037
|
};
|
|
2049
2038
|
}
|
|
2050
2039
|
|
|
2051
|
-
declare interface Prediction {
|
|
2052
|
-
hose?: HOSEPrediction;
|
|
2053
|
-
}
|
|
2054
|
-
|
|
2055
2040
|
export declare interface Prediction1D extends PredictionBase1D {
|
|
2056
2041
|
molfile: string;
|
|
2057
2042
|
diaIDs: string[];
|
|
@@ -2066,8 +2051,8 @@ export declare interface Prediction2D extends PredictionBase2D {
|
|
|
2066
2051
|
|
|
2067
2052
|
export declare interface PredictionBase1D {
|
|
2068
2053
|
nucleus: string;
|
|
2069
|
-
joinedSignals:
|
|
2070
|
-
signals:
|
|
2054
|
+
joinedSignals: NMRSignal1DFromPrediction[];
|
|
2055
|
+
signals: NMRSignal1DFromPrediction[];
|
|
2071
2056
|
ranges: NMRRange[];
|
|
2072
2057
|
}
|
|
2073
2058
|
|