Module: MzML

Defined in:
lib/mzml/doc.rb,
lib/mzml/version.rb,
lib/mzml/spectrum.rb,
lib/mzml/chromatogram.rb

Overview

MzML

A non-validating mzML v 1.1.0 parser. Most annotation is left as XML DOM objects. See the Nokogiri::XML::Node and Nokogiri::XML::NodeSet documentation on how to work with these.

USAGE:

require 'mzml'
mzml =  MzML::Doc.open("test.mzXML")
# to iterate through spectra
mzml.each do |spectrum|
  # ... do something interesting
end
# to get an Array of spectrum IDs
mzml.spectrum_list
# to fetch a specific spectrum, whose ID you already know
mzml.spectrum("controllerType=0 controllerNumber=1 scan=1")

Defined Under Namespace

Modules: RGX Classes: BadIdentifier, Chromatogram, Doc, Spectrum, UnsupportedFileFormat

Constant Summary collapse

VERSION =
"0.3.2"