Method: Ms::Sequest::Srf::Out::Peptide.set_deltacn_from_deltacn_orig
- Defined in:
- lib/ms/sequest/srf.rb
.set_deltacn_from_deltacn_orig(ar) ⇒ Object
creates the deltacn that is meaningful for the top hit (the deltacn_orig or the second best hit and so on). assumes sorted
632 633 634 635 |
# File 'lib/ms/sequest/srf.rb', line 632 def self.set_deltacn_from_deltacn_orig(ar) (1...ar.size).each {|i| ar[i-1].deltacn = ar[i].deltacn_orig } ar[-1].deltacn = 1.1 end |