Class: Mspire::Mzml::IsolationWindow

Inherits:
Object
  • Object
show all
Includes:
CV::Paramable
Defined in:
lib/mspire/mzml/isolation_window.rb

Overview

MUST supply a child term of MS:1000792 (isolation window attribute) one or more times

e.g.: MS:1000827 (isolation window target m/z)
e.g.: MS:1000828 (isolation window lower offset)
e.g.: MS:1000829 (isolation window upper offset)

MUST supply a child term of MS:1000792 (isolation window attribute) one or more times

e.g.: MS:1000827 (isolation window target m/z)
e.g.: MS:1000828 (isolation window lower offset)
e.g.: MS:1000829 (isolation window upper offset)

Instance Attribute Summary

Attributes included from CV::Paramable

#params

Class Method Summary collapse

Methods included from CV::Paramable

#describe!, #describe_many!, #find_param_by_accession, #find_param_value_by_accession, #initialize, #param_exists_by_accession?, #to_xml

Class Method Details

.from_xml(xml) ⇒ Object



19
20
21
22
23
# File 'lib/mspire/mzml/isolation_window.rb', line 19

def self.from_xml(xml)
  obj = self.new
  [:cvParam, :userParam].each {|v| obj.describe! xml.xpath("./#{v}") }
  obj
end