Sha256: 2a6fcfbbb4551ec9a4b7c55188184114bab771bd1003e56b2eca181e7b1516b3
Contents?: true
Size: 1.07 KB
Versions: 15
Compression:
Stored size: 1.07 KB
Contents
require 'ms/ident/protein_group' require 'ms/ident/protein' require 'ms/ident/peptide_hit' module MS # An MS::Ident::ProteinGroup is an array of proteins that responds to # :peptide_hits. All protein level identifications should be stored in a # proteingroup object. # # An MS::Ident::Protein is an object representing a protein (:id, # :sequence, :description). Note, it is not a protein hit (use a # ProteinGroup) # # An MS::Ident::PeptideHit is an object representing a match between an # amino acid sequence and a spectrum. # # Typical usage: # # require 'ms/ident' # # hit1 = PeptideHit.new(:id => 1, :aaseq => 'PEPTIDE', :search => # MS::Ident::Search.new, etc...) # peptide_hits = [hit1, hit2, ...] # # protein_groups = MS::Ident::ProteinGroup.peptide_hits_to_protein_groups(peptide_hits) # protein_groups.first.peptide_hits # => the peptide hits in that group module Ident # returns the filetype (if possible) def self.filetype(file) if file =~ /\.srf$/i :srf end end end end
Version data entries
15 entries across 15 versions & 1 rubygems