Class Chromatogram

Constructors

Accessors

Methods

  • Calculate length (number of points of each related information) and save it in the "length" series.

    Parameters

    • seriesName: string

      Name of the series to make calculation on. It must be a 2D series.

    • Optional options: CalculateOptions

    Returns Chromatogram

  • Returns the index of the closest real time to the specified one.

    Parameters

    • time: number

      Retention time.

    Returns number

    • Time index.
  • Returns whether the chromatogram has an "ms" series.

    Returns boolean

  • Returns whether the series exists.

    Parameters

    • seriesName: string

      Name of the series to check.

    Returns boolean

  • Throws an error if the series does not exist.

    Parameters

    • seriesName: string

      Name of the series to check.

    Returns void

  • Modifies the time applying the conversion function.

    Parameters

    • conversionFunction: ((time) => number)
        • (time): number
        • Parameters

          • time: number

          Returns number

    Returns Chromatogram

  • Returns a serializable representation of the chromatogram.

    Returns {
        series: {
            [key: string]: {
                data: ChromatogramSeriesData;
                meta?: object;
            };
        };
        times: number[];
    }