]> git.donarmstrong.com Git - biopieces.git/blobdiff - bp_bin/blast_seq_pair
changed Seq.new argument to hash
[biopieces.git] / bp_bin / blast_seq_pair
index 73c74154a7340809fbe0784726dc83791f1dc071..854ee424c3201110c9fb48f1dfcbe085737a884b 100755 (executable)
@@ -175,14 +175,14 @@ Biopieces.open(options[:stream_in], options[:stream_out]) do |input, output|
         end
 
         got1  = true
-        type1 = Seq.new(nil, record[:SEQ][0 ... 100]).type_guess
+        type1 = Seq.new(seq: record[:SEQ][0 ... 100]).type_guess
       elsif got2.nil?
         Fasta.open(infile2, "w") do |fasta_io|
           fasta_io.puts seq.to_fasta
         end
 
         got2  = true
-        type2 = Seq.new(nil, record[:SEQ][0 ... 100]).type_guess
+        type2 = Seq.new(seq: record[:SEQ][0 ... 100]).type_guess
       end
 
       if got1 and got2