Sha256: 2e6dc709330e00bf4a176e92e3d1c1136fca86e56746becf07b92350d8cc0a34

Contents?: true

Size: 628 Bytes

Versions: 10

Compression:

Stored size: 628 Bytes

Contents

require 'mspire/mzml/list'
require 'mspire/cv/paramable'


module Mspire
  class Mzml
    # MUST supply a *child* term of MS:1000455 (ion selection attribute) one or more times
    #
    #     e.g.: MS:1000041 (charge state)
    #     e.g.: MS:1000042 (intensity)
    #     e.g.: MS:1000633 (possible charge state)
    #     e.g.: MS:1000744 (selected ion m/z)
    class SelectedIon
      include Mspire::CV::Paramable
      extend(Mspire::Mzml::List)
      
      def self.from_xml(xml)
        obj = self.new
        [:cvParam, :userParam].each {|v| obj.describe! xml.xpath("./#{v}") }
        obj
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
mspire-0.7.18 lib/mspire/mzml/selected_ion.rb
mspire-0.7.17 lib/mspire/mzml/selected_ion.rb
mspire-0.7.13 lib/mspire/mzml/selected_ion.rb
mspire-0.7.12 lib/mspire/mzml/selected_ion.rb
mspire-0.7.11 lib/mspire/mzml/selected_ion.rb
mspire-0.7.10 lib/mspire/mzml/selected_ion.rb
mspire-0.7.9 lib/mspire/mzml/selected_ion.rb
mspire-0.7.8 lib/mspire/mzml/selected_ion.rb
mspire-0.7.7 lib/mspire/mzml/selected_ion.rb
mspire-0.7.6 lib/mspire/mzml/selected_ion.rb