Class: MzML::Chromatogram
- Inherits:
-
Object
- Object
- MzML::Chromatogram
- Defined in:
- lib/mzml/chromatogram.rb
Instance Attribute Summary collapse
-
#default_array_length ⇒ Object
readonly
Returns the value of attribute default_array_length.
-
#default_processing_ref ⇒ Object
readonly
Returns the value of attribute default_processing_ref.
-
#id ⇒ Object
readonly
Canonical ID of the chromatogram.
-
#index_position ⇒ Object
(also: #index)
readonly
The positional index of the chromatogram in the mzML document.
-
#intensity ⇒ Object
readonly
Intensity array of values.
-
#node ⇒ Object
readonly
Nokogiri::XML::Node of the document.
-
#params ⇒ Object
readonly
CV param attributes.
-
#time_unit ⇒ Object
readonly
The unit of time that the timepoints are measured in (e.g. seconds, minutes, …).
-
#timepoint ⇒ Object
readonly
Timepoints intensity values.
Instance Method Summary collapse
-
#initialize(node) ⇒ Chromatogram
constructor
A new instance of Chromatogram.
Constructor Details
#initialize(node) ⇒ Chromatogram
Returns a new instance of Chromatogram.
32 33 34 35 36 |
# File 'lib/mzml/chromatogram.rb', line 32 def initialize(node) @node = node @params = {} parse_element() end |
Instance Attribute Details
#default_array_length ⇒ Object (readonly)
Returns the value of attribute default_array_length.
9 10 11 |
# File 'lib/mzml/chromatogram.rb', line 9 def default_array_length @default_array_length end |
#default_processing_ref ⇒ Object (readonly)
Returns the value of attribute default_processing_ref.
15 16 17 |
# File 'lib/mzml/chromatogram.rb', line 15 def default_processing_ref @default_processing_ref end |
#id ⇒ Object (readonly)
Canonical ID of the chromatogram
7 8 9 |
# File 'lib/mzml/chromatogram.rb', line 7 def id @id end |
#index_position ⇒ Object (readonly) Also known as: index
The positional index of the chromatogram in the mzML document
12 13 14 |
# File 'lib/mzml/chromatogram.rb', line 12 def index_position @index_position end |
#intensity ⇒ Object (readonly)
Intensity array of values
24 25 26 |
# File 'lib/mzml/chromatogram.rb', line 24 def intensity @intensity end |
#node ⇒ Object (readonly)
Nokogiri::XML::Node of the document
27 28 29 |
# File 'lib/mzml/chromatogram.rb', line 27 def node @node end |
#params ⇒ Object (readonly)
CV param attributes
30 31 32 |
# File 'lib/mzml/chromatogram.rb', line 30 def params @params end |
#time_unit ⇒ Object (readonly)
The unit of time that the timepoints are measured in (e.g. seconds, minutes, …)
21 22 23 |
# File 'lib/mzml/chromatogram.rb', line 21 def time_unit @time_unit end |
#timepoint ⇒ Object (readonly)
Timepoints intensity values
18 19 20 |
# File 'lib/mzml/chromatogram.rb', line 18 def timepoint @timepoint end |