module Phred
Phred
- intended to be used as a mixin to add phred-score conversions to integers with byte-offset taken into account and also for conversion from byte to probability.
Private Instance Methods
probabilities_with_offset(offset, func)
click to toggle source
# File lib/dna/phred.rb, line 44 def probabilities_with_offset(offset, func) qualities_with_offset(offset).map do |q| func.call(q) end end
qualities_with_offset(offset)
click to toggle source
# File lib/dna/phred.rb, line 40 def qualities_with_offset(offset) @quality.each_byte.map { |q| q - offset } end