Class: MS::Lipid::Search::Query

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(mz, index) ⇒ Query

Returns a new instance of Query.



17
18
19
# File 'lib/ms/lipid/search/query.rb', line 17

def initialize(mz, index)
  @mz, @index = mz, index
end

Instance Attribute Details

#indexObject

the index of search spectrum that the m/z was derived from this allows for the creation of an isotope envelope starting from a particular m/z value.



15
16
17
# File 'lib/ms/lipid/search/query.rb', line 15

def index
  @index
end

#mzObject

the experimentally observed lowest mz



10
11
12
# File 'lib/ms/lipid/search/query.rb', line 10

def mz
  @mz
end