package biocaml

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Read mzData files (mass spectrometry data format).

type vec = (float, Stdlib.Bigarray.float64_elt, Stdlib.Bigarray.fortran_layout) Stdlib.Bigarray.Array1.t

Vectors of 64 bits floats.

type int_vec = (int, Stdlib.Bigarray.int_elt, Stdlib.Bigarray.fortran_layout) Stdlib.Bigarray.Array1.t

Vectors of OCaml ints.

module Precursor : sig ... end
type spectrum = {
  1. id : int;
    (*

    index of the spectrum in the file (starting with 1).

    *)
  2. mslevel : int;
    (*

    1: MS, 2: MS/MS,...

    *)
  3. precursor : Precursor.t list;
    (*

    List of precursors to the spectrum currently being described.

    *)
  4. mz : vec;
    (*

    m/z

    *)
  5. int : vec;
    (*

    intensities

    *)
  6. sup : (string * vec) list;
    (*

    Supplemental (name, arrays), if any

    *)
}

Individual mass spectrum.

val of_file : string -> spectrum list

of_file fname returns the spectra contained in the file fname.

OCaml

Innovation. Community. Security.