nmr-processing 21.2.3 → 21.2.4
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-processing.d.ts +24 -56
- package/dist/nmr-processing.js +2 -2
- package/package.json +2 -2
package/dist/nmr-processing.d.ts
CHANGED
|
@@ -39,7 +39,7 @@ import type { FordwardLPDimension1Options } from '@zakodium/nmr-types';
|
|
|
39
39
|
import type { FordwardLPDimension2Options } from '@zakodium/nmr-types';
|
|
40
40
|
import type { ForwardLP1DOptions } from '@zakodium/nmr-types';
|
|
41
41
|
import type { ForwardLPOptions } from '@zakodium/nmr-types';
|
|
42
|
-
import { FromTo } from 'cheminfo-types';
|
|
42
|
+
import type { FromTo } from 'cheminfo-types';
|
|
43
43
|
import type { GaussianOptions } from '@zakodium/nmr-types';
|
|
44
44
|
import type { GenerateSpectrumOptions } from 'spectrum-generator';
|
|
45
45
|
import type { GroupedDiaID } from 'openchemlib-utils';
|
|
@@ -73,6 +73,7 @@ import type { OptimizePeaksOptions } from 'ml-gsd';
|
|
|
73
73
|
import type { OptionsSG1D } from 'spectrum-generator';
|
|
74
74
|
import type { Peak1D } from '@zakodium/nmr-types';
|
|
75
75
|
import type { Peak2D } from 'ml-matrix-peaks-finder';
|
|
76
|
+
import type { Peak2D as Peak2D_2 } from '@zakodium/nmr-types';
|
|
76
77
|
import type { Peaks } from '@zakodium/nmr-types';
|
|
77
78
|
import type { PeakXYWidth } from 'cheminfo-types';
|
|
78
79
|
import type { PhaseCorrection1DFilterOptions } from '@zakodium/nmr-types';
|
|
@@ -89,7 +90,8 @@ import type { Shift2DXFilterOptions } from '@zakodium/nmr-types';
|
|
|
89
90
|
import type { Shift2DYFilterOptions } from '@zakodium/nmr-types';
|
|
90
91
|
import type { ShiftXFilterOptions } from '@zakodium/nmr-types';
|
|
91
92
|
import type { ShiftXOptions } from '@zakodium/nmr-types';
|
|
92
|
-
import {
|
|
93
|
+
import type { Signal2D } from '@zakodium/nmr-types';
|
|
94
|
+
import type { SignalKind } from '@zakodium/nmr-types';
|
|
93
95
|
import type { SignalProcessingFilter } from '@zakodium/nmr-types';
|
|
94
96
|
import type { SineBellOptions } from '@zakodium/nmr-types';
|
|
95
97
|
import type { SymmetrizeCosyLikeOptions } from '@zakodium/nmr-types';
|
|
@@ -1095,60 +1097,7 @@ export declare function mapPeaks(peaks: Peak1D[], spectrum: Entry1D, options?: M
|
|
|
1095
1097
|
|
|
1096
1098
|
export declare function mapRanges(ranges: Range_2[] | NMRRange[], spectrum: Entry1D, options?: MapOptions): Range_2[];
|
|
1097
1099
|
|
|
1098
|
-
export declare function mapZones(zones:
|
|
1099
|
-
signals: {
|
|
1100
|
-
peaks: {
|
|
1101
|
-
id: string;
|
|
1102
|
-
x: number;
|
|
1103
|
-
y: number;
|
|
1104
|
-
z: number;
|
|
1105
|
-
originalX?: number;
|
|
1106
|
-
originalY?: number;
|
|
1107
|
-
originalZ?: number;
|
|
1108
|
-
width?: number | {
|
|
1109
|
-
x: number;
|
|
1110
|
-
y: number;
|
|
1111
|
-
};
|
|
1112
|
-
}[] | undefined;
|
|
1113
|
-
id: string;
|
|
1114
|
-
kind: SignalKind;
|
|
1115
|
-
x: {
|
|
1116
|
-
originalDelta: number;
|
|
1117
|
-
delta: number;
|
|
1118
|
-
nbAtoms?: number;
|
|
1119
|
-
diaIDs?: string[];
|
|
1120
|
-
};
|
|
1121
|
-
y: {
|
|
1122
|
-
originalDelta: number;
|
|
1123
|
-
delta: number;
|
|
1124
|
-
nbAtoms?: number;
|
|
1125
|
-
diaIDs?: string[];
|
|
1126
|
-
};
|
|
1127
|
-
sign?: number;
|
|
1128
|
-
j?: {
|
|
1129
|
-
pathLength?: number | FromTo;
|
|
1130
|
-
};
|
|
1131
|
-
}[];
|
|
1132
|
-
kind: SignalKind;
|
|
1133
|
-
x: {
|
|
1134
|
-
from: number;
|
|
1135
|
-
to: number;
|
|
1136
|
-
nbAtoms?: number;
|
|
1137
|
-
diaIDs?: string[];
|
|
1138
|
-
originalFrom?: number;
|
|
1139
|
-
originalTo?: number;
|
|
1140
|
-
};
|
|
1141
|
-
y: {
|
|
1142
|
-
from: number;
|
|
1143
|
-
to: number;
|
|
1144
|
-
nbAtoms?: number;
|
|
1145
|
-
diaIDs?: string[];
|
|
1146
|
-
originalFrom?: number;
|
|
1147
|
-
originalTo?: number;
|
|
1148
|
-
};
|
|
1149
|
-
id: string;
|
|
1150
|
-
assignment?: string;
|
|
1151
|
-
}[];
|
|
1100
|
+
export declare function mapZones(zones: readonly ZoneForMapping[], datum: Entry2D, options?: MapOptions): Zone[];
|
|
1152
1101
|
|
|
1153
1102
|
export declare function markSolventPeaks<T extends NMRRange>(input: T[], solventSignals: NMRSignal1D[], options?: MarkSolventPeaksOptions): T[];
|
|
1154
1103
|
|
|
@@ -2186,6 +2135,17 @@ export declare interface Signal2DProjection {
|
|
|
2186
2135
|
diaIDs?: string[];
|
|
2187
2136
|
}
|
|
2188
2137
|
|
|
2138
|
+
declare type SignalAxisForMapping = Omit<Signal2D['x'], 'originalDelta'> & {
|
|
2139
|
+
originalDelta?: number;
|
|
2140
|
+
};
|
|
2141
|
+
|
|
2142
|
+
declare type SignalForMapping = Pick<Signal2D, 'kind'> & {
|
|
2143
|
+
id?: string;
|
|
2144
|
+
x: SignalAxisForMapping;
|
|
2145
|
+
y: SignalAxisForMapping;
|
|
2146
|
+
peaks?: SignalPeakForMapping[];
|
|
2147
|
+
};
|
|
2148
|
+
|
|
2189
2149
|
/**
|
|
2190
2150
|
* Join couplings smaller than a defined tolerance.
|
|
2191
2151
|
* The resulting coupling should be an average of the existing one.
|
|
@@ -2227,6 +2187,10 @@ export declare function signalMultiplicityPattern(signal: NMRSignal1D, options?:
|
|
|
2227
2187
|
acsFormat?: boolean;
|
|
2228
2188
|
}): string;
|
|
2229
2189
|
|
|
2190
|
+
declare type SignalPeakForMapping = Omit<Peak2D_2, 'id'> & {
|
|
2191
|
+
id?: string;
|
|
2192
|
+
};
|
|
2193
|
+
|
|
2230
2194
|
declare type SignalProcessing = FilterFactory<Entry1D, MatrixOptions<FilterOptions>> & Pick<SignalProcessingFilter, 'name'>;
|
|
2231
2195
|
|
|
2232
2196
|
export declare function signals2DToZ(signals: NMRSignal2D[], options?: Signals2DToZOptions): {
|
|
@@ -2832,6 +2796,10 @@ export declare interface Zone2DError {
|
|
|
2832
2796
|
y: number;
|
|
2833
2797
|
}
|
|
2834
2798
|
|
|
2799
|
+
declare type ZoneForMapping = Pick<Zone, 'id' | 'kind' | 'x' | 'y'> & {
|
|
2800
|
+
signals: SignalForMapping[];
|
|
2801
|
+
};
|
|
2802
|
+
|
|
2835
2803
|
|
|
2836
2804
|
export * from "gyromagnetic-ratio";
|
|
2837
2805
|
|