Sha256: f6ef3385fd8c9ecd12047a3767f1d07014d4e2d3e9b893e4785c144adff6ee2f

Contents?: true

Size: 1.11 KB

Versions: 39

Compression:

Stored size: 1.11 KB

Contents

require 'mspire/ident/protein_group'
require 'mspire/ident/protein'
require 'mspire/ident/peptide_hit'

module Mspire

  # An Mspire::Ident::ProteinGroup is an array of proteins that responds to
  # :peptide_hits.  All protein level identifications should be stored in a
  # proteingroup object.
  #
  # An Mspire::Ident::Protein is an object representing a protein (:id,
  # :sequence, :description).  Note, it is not a protein hit (use a
  # ProteinGroup)
  #  
  # An Mspire::Ident::PeptideHit is an object representing a match between an
  # amino acid sequence and a spectrum.
  #
  # Typical usage:
  #
  #     require 'mspire/ident'
  #
  #     hit1 = PeptideHit.new(:id => 1, :aaseq => 'PEPTIDE', :search =>
  #     Mspire::Ident::Search.new, etc...)
  #     peptide_hits = [hit1, hit2, ...]
  #
  #     protein_groups = Mspire::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

39 entries across 39 versions & 1 rubygems

Version Path
mspire-0.8.4 lib/mspire/ident.rb
mspire-0.8.3 lib/mspire/ident.rb
mspire-0.8.2 lib/mspire/ident.rb
mspire-0.8.1 lib/mspire/ident.rb
mspire-0.8.0 lib/mspire/ident.rb
mspire-0.7.18 lib/mspire/ident.rb
mspire-0.7.17 lib/mspire/ident.rb
mspire-0.7.13 lib/mspire/ident.rb
mspire-0.7.12 lib/mspire/ident.rb
mspire-0.7.11 lib/mspire/ident.rb
mspire-0.7.10 lib/mspire/ident.rb
mspire-0.7.9 lib/mspire/ident.rb
mspire-0.7.8 lib/mspire/ident.rb
mspire-0.7.7 lib/mspire/ident.rb
mspire-0.7.6 lib/mspire/ident.rb
mspire-0.7.5 lib/mspire/ident.rb
mspire-0.7.4 lib/mspire/ident.rb
mspire-0.7.3 lib/mspire/ident.rb
mspire-0.7.2 lib/mspire/ident.rb