X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bp_bin%2Fscores_to_dec;h=56381a5522b023ecbde2ae9a7d3fece2aef7088c;hb=c4f14c511655d92281b6d70363de57b77a9b6045;hp=c5e7c1e2361788f51471f99886d11a400ca33948;hpb=2944deebd4724b87f68388f4178ce127aec7ce56;p=biopieces.git diff --git a/bp_bin/scores_to_dec b/bp_bin/scores_to_dec index c5e7c1e..56381a5 100755 --- a/bp_bin/scores_to_dec +++ b/bp_bin/scores_to_dec @@ -50,14 +50,12 @@ class Hash end end -casts = [] +options = Biopieces.options_parse(ARGV) -bp = Biopieces.new - -options = bp.parse(ARGV, casts) - -bp.each_record do |record| - bp.puts record.scores2dec! +Biopieces.open(options[:stream_in], options[:stream_out]) do |input, output| + input.each_record do |record| + output.puts record.scores2dec! + end end