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
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
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