infile = File.join(tmpdir, "in.fna")
outfile = File.join(tmpdir, "out.prodigal")
-Fasta.open(infile, mode="w") do |fasta_output|
+Fasta.open(infile, "w") do |fasta_output|
Biopieces.open(options[:stream_in], options[:stream_out]) do |input, output|
input.each_record do |record|
- if record.has_key? :SEQ
+ if record[:SEQ]
seq = Seq.new_bp(record)
total += record[:SEQ].length