class Proph::PepSummary::Pep
this is a SpecID::Pep
(by interface: not including stuff yet)
Public Instance Methods
from_pepxml_node(node)
click to toggle source
returns self
Calls superclass method
# File lib/ms/ident/pepxml/pep_summary.rb, line 71 def from_pepxml_node(node) super(node) an_res = node.find_first('child::analysis_result') pp_n = an_res.find_first('child::peptideprophet_result') self.probability = pp_n['probability'].to_f pp_n.find('descendant::parameter').each do |par_n| case par_n['name'] when 'fval' self.fval = par_n['value'].to_f when 'ntt' self.ntt = par_n['value'].to_i when 'nmc' self.nmc = par_n['value'].to_i when 'massd' self.massd = par_n['value'].to_f end end self end