Class: MzML::Chromatogram

Inherits:
Object
  • Object
show all
Defined in:
lib/mzml/chromatogram.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_lengthObject (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_refObject (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

#idObject (readonly)

Canonical ID of the chromatogram



7
8
9
# File 'lib/mzml/chromatogram.rb', line 7

def id
  @id
end

#index_positionObject (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

#intensityObject (readonly)

Intensity array of values



24
25
26
# File 'lib/mzml/chromatogram.rb', line 24

def intensity
  @intensity
end

#nodeObject (readonly)

Nokogiri::XML::Node of the document



27
28
29
# File 'lib/mzml/chromatogram.rb', line 27

def node
  @node
end

#paramsObject (readonly)

CV param attributes



30
31
32
# File 'lib/mzml/chromatogram.rb', line 30

def params
  @params
end

#time_unitObject (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

#timepointObject (readonly)

Timepoints intensity values



18
19
20
# File 'lib/mzml/chromatogram.rb', line 18

def timepoint
  @timepoint
end