class Proph::PepSummary
Constants
- Filetype_and_version_re_new
- Prot
Attributes
msms_run_summaries[RW]
peptideprophet_summary[RW]
the protein groups currently these are just xml nodes returned!
version[RW]
Public Class Methods
new(file=nil)
click to toggle source
# File lib/ms/ident/pepxml/pep_summary.rb, line 54 def initialize(file=nil) if file @version = get_version(file) spec_id = SpecID::Parser::PepProph.new(:spec_id).parse(file, :spec_id => self) end end
Public Instance Methods
get_version(file)
click to toggle source
# File lib/ms/ident/pepxml/pep_summary.rb, line 34 def get_version(file) answer = nil File.open(file) do |fh| 8.times do line = fh.gets answer = if line =~ Filetype_and_version_re_new $1.dup end break if answer end end raise(ArgumentError, "couldn't detect version in #{file}") unless answer answer end
hi_prob_best()
click to toggle source
# File lib/ms/ident/pepxml/pep_summary.rb, line 32 def hi_prob_best ; true end
search_hit_class()
click to toggle source
# File lib/ms/ident/pepxml/pep_summary.rb, line 50 def search_hit_class PepSummary::Pep end