]> git.donarmstrong.com Git - biopieces.git/blobdiff - bp_bin/scores_to_dec
fixed SCORE_BASE global var
[biopieces.git] / bp_bin / scores_to_dec
index 56381a5522b023ecbde2ae9a7d3fece2aef7088c..2d91c2bda001f24767f1208d5930291fe24d014b 100755 (executable)
 
 # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
 
-
 require 'maasha/biopieces'
-
-ILLUMINA_BASE = 64
+require 'maasha/seq'
 
 # Expading class Hash with possibly evil monkey patch.
 class Hash
@@ -40,7 +38,7 @@ class Hash
   def scores2dec!
     if self.has_key? :SCORES
       self[:SCORES].gsub! /./ do |score|
-        score = (score.ord - ILLUMINA_BASE).to_s + ";"
+        score = (score.ord - Seq::SCORE_BASE).to_s + ";"
       end
 
       self[:SCORES].chomp! ";"