Sha256: aecb899bc9c66cf2e81d1944db2f425fe36eaf6827d0970ab5b49f98c38e2342
Contents?: true
Size: 1.17 KB
Versions: 6
Compression:
Stored size: 1.17 KB
Contents
require 'ms/mzml/list' module MS class Mzml # The method of precursor ion selection and activation class Precursor # (optional) the MS::Mzml::Spectrum object from which the precursor is # derived attr_accessor :spectrum # (optional) attr_accessor :isolation_window # (optional) An array of ions that were selected. attr_accessor :selected_ions # (required) The type and energy level used for activation. attr_accessor :activation # a boolean indicating the spectrum is from an external source file attr_accessor :from_external_source_file def to_xml(builder) atts = {} if @from_external_source_file atts[:sourceFileRef] = @spectrum.source_file.id atts[:externalSpectrumRef] = @spectrum.id else atts[:spectrumRef] = @spectrum.id if @spectrum end builder.precursor(atts) do |prec_n| @isolation_window.to_xml(prec_n) if @isolation_window MS::Mzml::SelectedIonList.list_xml(@selected_ions, prec_n) if @selected_ions @activation.to_xml(prec_n) end end extend(MS::Mzml::List) end end end
Version data entries
6 entries across 6 versions & 1 rubygems