Class: MS::Lipid::Search::DBIsobarGroup

Inherits:
Array
  • Object
show all
Defined in:
lib/ms/lipid/search/db_isobar_group.rb

Overview

this is a group of Lipid::Ion objects that all have the same (or possibly similar) m/z

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ar = [], mz = nil) ⇒ DBIsobarGroup

Returns a new instance of DBIsobarGroup.



13
14
15
16
# File 'lib/ms/lipid/search/db_isobar_group.rb', line 13

def initialize( ar=[], mz=nil)
  @mz = mz if mz
  self.replace(ar)
end

Instance Attribute Details

#mzObject

it is implemented like this so that the isobar group could have individuals in it with slightly different m/z values and this coudl still be used as a container. In my current implementation they have exactly the same m/z



12
13
14
# File 'lib/ms/lipid/search/db_isobar_group.rb', line 12

def mz
  @mz
end