X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bp_bin%2Fplot_distribution;h=175ca595377d4e3824d2c51620af5654e2114fd3;hb=af282a65d141826c15944437b07a0353dd14e79c;hp=02f802ee611ea1146c88a7de878705358f982f10;hpb=f46d61f0881daf3bb2ad3209dd07169ee2453246;p=biopieces.git diff --git a/bp_bin/plot_distribution b/bp_bin/plot_distribution index 02f802e..175ca59 100755 --- a/bp_bin/plot_distribution +++ b/bp_bin/plot_distribution @@ -54,7 +54,7 @@ count_hash = Hash.new(0) Biopieces.open(options[:stream_in], options[:stream_out]) do |input, output| input.each_record do |record| - if record.has_key? key + if record[key] count_hash[record[key].to_i] += 1 end