From e584ac2e3932dfa8abcb497c4b69ffd944affd34 Mon Sep 17 00:00:00 2001 From: martinahansen Date: Thu, 1 Nov 2012 14:32:27 +0000 Subject: [PATCH] added verbose info to order_pairs3 git-svn-id: http://biopieces.googlecode.com/svn/trunk@1982 74ccb610-7750-0410-82ae-013aeee3265d --- bp_bin/order_pairs3 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bp_bin/order_pairs3 b/bp_bin/order_pairs3 index 0c51891..6edb1fd 100755 --- a/bp_bin/order_pairs3 +++ b/bp_bin/order_pairs3 @@ -86,6 +86,7 @@ Biopieces.open(options[:stream_in], options[:stream_out]) do |input, output| tmpfile = File.join(tmpdir, "#{file_count}.stream") + $stderr.puts "Writing tmp file #{tmpfile}" if options[:verbose] Biopieces.open(nil, tmpfile) do |tmpin, tmpout| block.each { |r| tmpout.puts r } end @@ -100,6 +101,7 @@ Biopieces.open(options[:stream_in], options[:stream_out]) do |input, output| tmpfile = File.join(tmpdir, "#{file_count}.stream") + $stderr.puts "Writing tmp file #{tmpfile}" if options[:verbose] Biopieces.open(nil, tmpfile) do |tmpin, tmpout| block.each { |r| tmpout.puts r } end @@ -107,6 +109,7 @@ end while files = Dir.glob(File.join(tmpdir, "*.stream")) and files.size > 1 0.step(files.size - 2, 2) do |i| + $stderr.puts "Merging files #{files[i]} #{files[i + 1]}" if options[:verbose] files_merge(files[i], files[i + 1]) end end -- 2.39.5