class Ms::Ident::ProteinHit

Attributes

peptide_hits[RW]

Public Class Methods

new(id=nil, peptide_hits=[]) click to toggle source
# File lib/ms/ident/protein_hit.rb, line 10
def initialize(id=nil, peptide_hits=[])
  @peptide_hits = peptide_hits
  @id = id
end

Public Instance Methods

gene_id() click to toggle source

if the GN=(+) regexp is found in the description, returns the first match, or nil if not found

# File lib/ms/ident/protein_hit.rb, line 17
def gene_id
  description.andand.match(/ GN=(\w+) ?/)[1]
end