Class: Mspire::Mzml::SpectrumList
- Inherits:
-
IOIndexableList
- Object
- SimpleDelegator
- IOIndexableList
- Mspire::Mzml::SpectrumList
- Defined in:
- lib/mspire/mzml/spectrum_list.rb
Instance Attribute Summary collapse
-
#scan_to_index ⇒ Object
Returns the value of attribute scan_to_index.
Attributes inherited from IOIndexableList
#default_data_processing, #id_to_index
Instance Method Summary collapse
Methods inherited from IOIndexableList
#[], #create_id_to_index!, #initialize, #list_type, #to_xml
Constructor Details
This class inherits a constructor from Mspire::Mzml::IOIndexableList
Instance Attribute Details
#scan_to_index ⇒ Object
Returns the value of attribute scan_to_index.
7 8 9 |
# File 'lib/mspire/mzml/spectrum_list.rb', line 7 def scan_to_index @scan_to_index end |
Instance Method Details
#fetch_by_scan_num(scan_num) ⇒ Object
9 10 11 |
# File 'lib/mspire/mzml/spectrum_list.rb', line 9 def fetch_by_scan_num(scan_num) __getobj__[@scan_to_index[scan_num]] end |