]> git.donarmstrong.com Git - biopieces.git/commitdiff
added verbose info to order_pairs3
authormartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Thu, 1 Nov 2012 14:32:27 +0000 (14:32 +0000)
committermartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Thu, 1 Nov 2012 14:32:27 +0000 (14:32 +0000)
git-svn-id: http://biopieces.googlecode.com/svn/trunk@1982 74ccb610-7750-0410-82ae-013aeee3265d

bp_bin/order_pairs3

index 0c518919d269fbc85364556701699059b942e80e..6edb1fdb981a10daaf352cefc72baa0074a3237a 100755 (executable)
@@ -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