Class: MzML::Spectrum
- Inherits:
-
Object
- Object
- MzML::Spectrum
- Defined in:
- lib/mzml/spectrum.rb
Instance Attribute Summary collapse
-
#base_peak_intensity ⇒ Object
readonly
Returns the value of attribute base_peak_intensity.
-
#base_peak_mz ⇒ Object
readonly
Returns the value of attribute base_peak_mz.
-
#default_array_length ⇒ Object
readonly
Returns the value of attribute default_array_length.
-
#high_mz ⇒ Object
readonly
Returns the value of attribute high_mz.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#intensity ⇒ Object
readonly
Returns the value of attribute intensity.
-
#intensity_node ⇒ Object
readonly
Returns the value of attribute intensity_node.
-
#low_mz ⇒ Object
readonly
Returns the value of attribute low_mz.
-
#ms_level ⇒ Object
readonly
Returns the value of attribute ms_level.
-
#mz ⇒ Object
readonly
Returns the value of attribute mz.
-
#mz_node ⇒ Object
readonly
Returns the value of attribute mz_node.
-
#node ⇒ Object
readonly
Returns the value of attribute node.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#polarity ⇒ Object
readonly
Returns the value of attribute polarity.
-
#precursor ⇒ Object
readonly
Returns the value of attribute precursor.
-
#precursor_intensity ⇒ Object
readonly
Returns the value of attribute precursor_intensity.
-
#precursor_list ⇒ Object
readonly
Returns the value of attribute precursor_list.
-
#precursor_mass ⇒ Object
readonly
Returns the value of attribute precursor_mass.
-
#representation ⇒ Object
readonly
Returns the value of attribute representation.
-
#retention_time ⇒ Object
readonly
Returns the value of attribute retention_time.
-
#retention_time_unit ⇒ Object
readonly
Returns the value of attribute retention_time_unit.
-
#scan_list ⇒ Object
readonly
Returns the value of attribute scan_list.
-
#tic ⇒ Object
readonly
Returns the value of attribute tic.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(node) ⇒ Spectrum
constructor
A new instance of Spectrum.
Constructor Details
#initialize(node) ⇒ Spectrum
Returns a new instance of Spectrum.
12 13 14 15 16 17 |
# File 'lib/mzml/spectrum.rb', line 12 def initialize(node) @node = node @params = {} @precursor_list = [] parse_element() end |
Instance Attribute Details
#base_peak_intensity ⇒ Object (readonly)
Returns the value of attribute base_peak_intensity.
6 7 8 |
# File 'lib/mzml/spectrum.rb', line 6 def base_peak_intensity @base_peak_intensity end |
#base_peak_mz ⇒ Object (readonly)
Returns the value of attribute base_peak_mz.
6 7 8 |
# File 'lib/mzml/spectrum.rb', line 6 def base_peak_mz @base_peak_mz end |
#default_array_length ⇒ Object (readonly)
Returns the value of attribute default_array_length.
6 7 8 |
# File 'lib/mzml/spectrum.rb', line 6 def default_array_length @default_array_length end |
#high_mz ⇒ Object (readonly)
Returns the value of attribute high_mz.
6 7 8 |
# File 'lib/mzml/spectrum.rb', line 6 def high_mz @high_mz end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'lib/mzml/spectrum.rb', line 6 def id @id end |
#intensity ⇒ Object (readonly)
Returns the value of attribute intensity.
6 7 8 |
# File 'lib/mzml/spectrum.rb', line 6 def intensity @intensity end |
#intensity_node ⇒ Object (readonly)
Returns the value of attribute intensity_node.
6 7 8 |
# File 'lib/mzml/spectrum.rb', line 6 def intensity_node @intensity_node end |
#low_mz ⇒ Object (readonly)
Returns the value of attribute low_mz.
6 7 8 |
# File 'lib/mzml/spectrum.rb', line 6 def low_mz @low_mz end |
#ms_level ⇒ Object (readonly)
Returns the value of attribute ms_level.
6 7 8 |
# File 'lib/mzml/spectrum.rb', line 6 def ms_level @ms_level end |
#mz ⇒ Object (readonly)
Returns the value of attribute mz.
6 7 8 |
# File 'lib/mzml/spectrum.rb', line 6 def mz @mz end |
#mz_node ⇒ Object (readonly)
Returns the value of attribute mz_node.
6 7 8 |
# File 'lib/mzml/spectrum.rb', line 6 def mz_node @mz_node end |
#node ⇒ Object (readonly)
Returns the value of attribute node.
6 7 8 |
# File 'lib/mzml/spectrum.rb', line 6 def node @node end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
6 7 8 |
# File 'lib/mzml/spectrum.rb', line 6 def params @params end |
#polarity ⇒ Object (readonly)
Returns the value of attribute polarity.
6 7 8 |
# File 'lib/mzml/spectrum.rb', line 6 def polarity @polarity end |
#precursor ⇒ Object (readonly)
Returns the value of attribute precursor.
6 7 8 |
# File 'lib/mzml/spectrum.rb', line 6 def precursor @precursor end |
#precursor_intensity ⇒ Object (readonly)
Returns the value of attribute precursor_intensity.
6 7 8 |
# File 'lib/mzml/spectrum.rb', line 6 def precursor_intensity @precursor_intensity end |
#precursor_list ⇒ Object (readonly)
Returns the value of attribute precursor_list.
6 7 8 |
# File 'lib/mzml/spectrum.rb', line 6 def precursor_list @precursor_list end |
#precursor_mass ⇒ Object (readonly)
Returns the value of attribute precursor_mass.
6 7 8 |
# File 'lib/mzml/spectrum.rb', line 6 def precursor_mass @precursor_mass end |
#representation ⇒ Object (readonly)
Returns the value of attribute representation.
6 7 8 |
# File 'lib/mzml/spectrum.rb', line 6 def representation @representation end |
#retention_time ⇒ Object (readonly)
Returns the value of attribute retention_time.
6 7 8 |
# File 'lib/mzml/spectrum.rb', line 6 def retention_time @retention_time end |
#retention_time_unit ⇒ Object (readonly)
Returns the value of attribute retention_time_unit.
6 7 8 |
# File 'lib/mzml/spectrum.rb', line 6 def retention_time_unit @retention_time_unit end |
#scan_list ⇒ Object (readonly)
Returns the value of attribute scan_list.
6 7 8 |
# File 'lib/mzml/spectrum.rb', line 6 def scan_list @scan_list end |
#tic ⇒ Object (readonly)
Returns the value of attribute tic.
6 7 8 |
# File 'lib/mzml/spectrum.rb', line 6 def tic @tic end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
6 7 8 |
# File 'lib/mzml/spectrum.rb', line 6 def title @title end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
6 7 8 |
# File 'lib/mzml/spectrum.rb', line 6 def type @type end |