]> git.donarmstrong.com Git - biopieces.git/blobdiff - bp_bin/plot_scores
removed debug message
[biopieces.git] / bp_bin / plot_scores
index 30ffeb3287dcffc20e44b05dbd01f6e1543abd4b..a765cb5bd3603d4d8c89913f7cc03370235d213a 100755 (executable)
@@ -25,9 +25,9 @@
 # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
 
 require 'maasha/biopieces'
+require 'maasha/seq'
 require 'gnuplot'
 require 'narray'
-require 'pp'
 
 terminals = "dumb,x11,aqua,post,pdf,png,svg"
 title     = "Mean Quality Scores"
@@ -45,7 +45,7 @@ casts << {:long=>'ylabel',    :short=>'Y', :type=>'string', :mandatory=>false, :
 
 options = Biopieces.options_parse(ARGV, casts)
 
-SCORES_MAX = 10_000
+SCORES_MAX = 100_000
 
 scores_vec = NArray.int(SCORES_MAX)
 count_vec  = NArray.int(SCORES_MAX)
@@ -85,7 +85,7 @@ Gnuplot.open do |gp|
     plot.title    options[:title]
     plot.xlabel   options[:xlabel]
     plot.ylabel   options[:ylabel]
-    plot.output   options[:data_out] if options[:data_out]
+    plot.output   options[:data_out] || "/dev/stderr"
     plot.xrange   "[#{x.min - 1}:#{x.max + 1}]"
     plot.yrange   "[#{Seq::SCORE_MIN}:#{Seq::SCORE_MAX}]"
     plot.style    "fill solid 0.5 border"