X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bp_bin%2Fassemble_seq_ray;h=fbef82aedd72fba3bc268adaba38fba6eed4eaa0;hb=d83e1ce27879cdb71a8cad530e138d96214619ae;hp=441fb507ede8c228fbcad32c6ff242504926a538;hpb=c7335fcf6000fb34574c7c7def841b67e923b508;p=biopieces.git diff --git a/bp_bin/assemble_seq_ray b/bp_bin/assemble_seq_ray index 441fb50..fbef82a 100755 --- a/bp_bin/assemble_seq_ray +++ b/bp_bin/assemble_seq_ray @@ -141,7 +141,11 @@ file_fasta = File.join(options[:directory], "sequence_in.fasta") Biopieces.open(options[:stream_in], options[:stream_out]) do |input, output| Fasta.open(file_fasta, mode="w") do |fasta_io| input.each_record do |record| - fasta_io.puts record + if record[:SEQ_NAME] and record[:SEQ] + seq = Seq.new_bp(record) + + fasta_io.puts seq.to_fasta + end end end