nmr-processing 11.6.0 → 11.7.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.
@@ -426,6 +426,8 @@ export declare interface Get13CAssignmentsOptions {
426
426
  predictionOptions?: PredictCarbonOptions;
427
427
  }
428
428
 
429
+ export declare function get1DErrorFactor(spectrum: Entry1D): number;
430
+
429
431
  export declare function get1HAssignments(ranges: NMRRange[], molecule: Molecule, options?: Get1HAssignmentsOptions): Promise<{
430
432
  score: any;
431
433
  assignment: unknown[];
@@ -459,6 +461,8 @@ export declare interface Get1HAssignmentsOptions {
459
461
  predictionOptions?: PredictProtonOptions;
460
462
  }
461
463
 
464
+ export declare function get2DErrorFactor(spectrum: Entry2D): Zone2DError;
465
+
462
466
  export declare function getAssignments(input: GetAutoAssignmentInput, options?: GetAssignmentsOptions): Promise<{
463
467
  score: any;
464
468
  assignment: SpectraDataWithIds[];
@@ -562,8 +566,6 @@ export declare interface GetPeakListOptions extends GSDOptions, OptimizePeaksOpt
562
566
 
563
567
  export declare function getShiftX(spectrum: Entry1D): number;
564
568
 
565
- export declare function getSpectrumErrorValue(spectrum: Entry1D): number;
566
-
567
569
  export declare const impurities: SolventImpurities;
568
570
 
569
571
  declare const impuritiesContent: {
@@ -2150,6 +2152,10 @@ export declare function isEmptyMolecule(molecule: Molecule): boolean;
2150
2152
 
2151
2153
  export declare function isMolfileNotEmpty(molFile?: string): molFile is string;
2152
2154
 
2155
+ export declare function isRangeExists(range: Pick<Range_2, 'from' | 'to'>, spectrum: Entry1D, error: number): true | undefined;
2156
+
2157
+ export declare function isZoneExists(zone: Pick<Zone, 'x' | 'y'>, spectrum: Entry2D, error: Zone2DError): boolean;
2158
+
2153
2159
  declare interface JAxisKeys {
2154
2160
  [key: string]: string;
2155
2161
  jAxis: string;
@@ -2270,6 +2276,7 @@ export declare function mapRanges(ranges: Range_2[] | NMRRange[], spectrum: Entr
2270
2276
  nbAtoms?: number | undefined;
2271
2277
  multiplicity?: string | undefined;
2272
2278
  diaIDs?: string[] | undefined;
2279
+ assignment?: string | undefined;
2273
2280
  pubIntegral?: number | undefined;
2274
2281
  }[];
2275
2282
 
@@ -2393,6 +2400,7 @@ export declare interface NMRRange {
2393
2400
  from: number;
2394
2401
  to: number;
2395
2402
  id?: string;
2403
+ assignment?: string;
2396
2404
  diaIDs?: string[];
2397
2405
  kind?: string;
2398
2406
  pubIntegral?: number;
@@ -2465,7 +2473,7 @@ declare interface NMRZoneWithIds extends Omit<NMRZone, 'signals' | 'id'> {
2465
2473
  /**
2466
2474
  * The idea is to convert nucleus name like H1, proton or Fluorine19 to 1H and 19F.
2467
2475
  */
2468
- export declare function normalizeNucleus(name: string): string;
2476
+ export declare function normalizeNucleus(nucleus: string): string;
2469
2477
 
2470
2478
  export { Nuclei }
2471
2479
 
@@ -2589,6 +2597,11 @@ declare interface OptionsPeaksToRanges {
2589
2597
  * @default '1H'
2590
2598
  */
2591
2599
  nucleus?: string;
2600
+ /**
2601
+ * ratio of heights between the extreme peaks
2602
+ * @default 1.5
2603
+ */
2604
+ symRatio?: number;
2592
2605
  }
2593
2606
 
2594
2607
  export declare interface OptionsSignalsToXY {
@@ -3792,6 +3805,11 @@ declare function unlink(range: Range_2, options?: UnlinkOptions): Range_2;
3792
3805
  kind?: string;
3793
3806
  }
3794
3807
 
3808
+ export declare interface Zone2DError {
3809
+ x: number;
3810
+ y: number;
3811
+ }
3812
+
3795
3813
  declare interface ZoneAxis extends FromTo {
3796
3814
  nbAtoms?: number;
3797
3815
  diaIDs?: string[];