output.puts record
if record.has_key? :SEQ_NAME and record.has_key? :SEQ
+ seq = Seq.new_bp(record)
+
unless got1
Fasta.open(infile1, mode="w") do |fasta_io|
- fasta_io.puts record
+ fasta_io.puts seq.to_fasta
end
got1 = true
unless got2
Fasta.open(infile2, mode="w") do |fasta_io|
- fasta_io.puts record
+ fasta_io.puts seq.to_fasta
end
got2 = true
if record.has_key? :SEQ
record[:SEQ_NAME] = number_seq
- out_fa.puts record
+
+ seq = Seq.new_bp(record)
+
+ out_fa.puts seq.to_fasta
number_seq += 1;
bases += record[:SEQ].length
record[:SEQ_NAME] = seq_name_count
seq_name_count += 1
+ seq = Seq.new_bp(record)
+
if seq_type.nil?
- seq = Seq.new("", record[:SEQ])
seq_type = seq.type_guess
end
+
+ fasta_io.puts seq.to_fasta
end
output.puts record
- fasta_io.puts record
end
end
end