chromatography
    Preparing search index...

    Class Chromatogram

    Index

    Constructors

    Properties

    meta: Record<string, unknown>
    series: Record<
        string,
        ChromatogramSeries<ChromatogramSeries1DData | ChromatogramSeries2DData>,
    >
    times: DoubleArray

    Accessors

    • get firstTime(): number

      Returns the first time value.

      Returns number

    • get lastTime(): number

      Returns the last time value.

      Returns number

    • get length(): number

      Returns the number of time points.

      Returns number

    Methods

    • Calculate the extracted ion chromatogram (EIC) and save it in a new series.

      Parameters

      • targetMass: string | number | number[]

        Mass or masses for which to extract the spectrum.

      • options: CalculateEicOptions = {}

      Returns ChromatogramSeries1D

      • The created series.
    • Calculate mass spectrum by filtering for a molecular formula.

      Parameters

      Returns Promise<ChromatogramSeries1D>

      • The created series.
    • 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.

      • options: CalculateOptions = {}

      Returns this

    • Delete a series.

      Parameters

      • seriesName: string

      Returns this

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

      Parameters

      • time: number

        Retention time.

      Returns number

      • Time index.
    • Find the series from its name.

      Parameters

      • seriesName: string

        Name of the series.

      Returns ChromatogramSeries

    • Find the series from its name. Throws an error if it is not a 1D series.

      Parameters

      • seriesName: string

        Name of the series.

      Returns ChromatogramSeries1D

    • Find the series from its name. Throws an error if it is not a 2D series.

      Parameters

      • seriesName: string

        Name of the series.

      Returns ChromatogramSeries2D

    • Returns the names of all series.

      Returns string[]

    • Returns the time values.

      Returns DoubleArray

    • 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

    • Filter the given 2D series based on its median value.

      Parameters

      Returns ChromatogramSeries2D

    • Filter the given 2D series based on the percentage of the highest value

      Parameters

      Returns ChromatogramSeries2D

    • 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) => number

      Returns this

    • Assign the time values.

      Parameters

      • times: DoubleArray

        New time values.

      Returns this

    • Returns a serializable representation of the chromatogram.

      Returns {
          series: {
              [k: string]: {
                  data: DoubleArray | ChromatogramSeries2DData;
                  meta: Record<string, unknown>;
              };
          };
          times: number[];
      }