- if record.has_key? :SEQ_NAME and record.has_key? :SEQ
- unless got1
- Fasta.open(infile1, mode="w") do |fasta_io|
- fasta_io.puts record
+ if record[:SEQ_NAME] and record[:SEQ]
+ seq = Seq.new_bp(record)
+
+ if got1.nil?
+ Fasta.open(infile1, "w") do |fasta_io|
+ fasta_io.puts seq.to_fasta