Read mzData files (mass spectrometry data format).
type vec = (float, Bigarray.float64_elt, Bigarray.fortran_layout) Bigarray.Array1.t
Vectors of 64 bits floats.
type int_vec = (int, Bigarray.int_elt, Bigarray.fortran_layout) Bigarray.Array1.t
Vectors of OCaml ints.
module Precursor:
sig
type t = {
|
mslevel : int; |
|
mz : float; |
|
z : float; |
|
int : float; |
}
val mass : t -> float
mass p return the mass of the precursor p without charge.
end
type spectrum = {
|
id : int; |
|
mslevel : int; |
|
precursor : Precursor.t list; |
|
mz : vec; |
|
int : vec; |
|
sup : (string * vec) list; |
}
Individual mass spectrum.
val of_file : string -> spectrum list
of_file fname returns the spectra contained in the file
fname.