Class: Mspire::Mzml::SelectedIon
- Inherits:
-
Object
- Object
- Mspire::Mzml::SelectedIon
- Extended by:
- List
- Includes:
- CV::Paramable
- Defined in:
- lib/mspire/mzml/selected_ion.rb
Overview
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)
Instance Attribute Summary
Attributes included from CV::Paramable
#cv_params, #ref_param_groups, #user_params
Class Method Summary collapse
Methods included from List
Methods included from CV::Paramable
#accessionable_params, #describe!, #describe_many!, #fetch, #fetch_by_accession, #initialize, #param?, #param_by_accession, #params, #params?, #to_xml
Class Method Details
.from_xml(xml) ⇒ Object
17 18 19 20 21 |
# File 'lib/mspire/mzml/selected_ion.rb', line 17 def self.from_xml(xml) obj = self.new [:cvParam, :userParam].each {|v| obj.describe! xml.xpath("./#{v}") } obj end |