# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
require 'maasha/biopieces'
-require 'dbm'
+require 'gdbm'
require 'pp'
ILLUMINA15 = 15
options = Biopieces.options_parse(ARGV)
tmpdir = Biopieces.mktmpdir
-#tmpdir = "Sletmig"
+tmpdir = "Sletmig"
tmpfile = File.join(tmpdir, "data")
-db = DBM.new(tmpfile)
+db = GDBM.new(tmpfile)
Biopieces.open(options[:stream_in], options[:stream_out]) do |input, output|
input.each_record do |record|
end
end
-File.delete(tmpfile + ".db")
+db.close
+
+FileUtils.remove_entry_secure("#{tmpfile}.db", true)
# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<