Class: MS::Lipid::Search::HitGroup

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

Overview

A query that matched multiple items. Each search returns a hit group which consists of the best hits for that experimental m/z. When queried for values like delta or ppm, it will delegate to the first hit. So, in many ways it can be used as a container for hits, but it puts its best face forward.

Instance Method Summary collapse

Instance Method Details

#best_hitObject



70
# File 'lib/ms/lipid/search/hit.rb', line 70

def best_hit() first end

#deltaObject

should implement with delegator obviously… should allow setting ???



62
# File 'lib/ms/lipid/search/hit.rb', line 62

def delta() first.delta end

#observed_mzObject



66
# File 'lib/ms/lipid/search/hit.rb', line 66

def observed_mz() first.observed_mz end

#ppmObject



63
# File 'lib/ms/lipid/search/hit.rb', line 63

def ppm() first.ppm end

#pvalueObject



67
# File 'lib/ms/lipid/search/hit.rb', line 67

def pvalue() first.pvalue end

#query_groupObject



65
# File 'lib/ms/lipid/search/hit.rb', line 65

def query_group() first.query_group end

#qvalueObject



68
# File 'lib/ms/lipid/search/hit.rb', line 68

def qvalue() first.pvalue end

#theoretical_mzObject



64
# File 'lib/ms/lipid/search/hit.rb', line 64

def theoretical_mz() first.theoretical_mz end