]> git.donarmstrong.com Git - biopieces.git/blobdiff - bp_bin/assemble_seq_idba
fixed type in assemble_seq_idba
[biopieces.git] / bp_bin / assemble_seq_idba
index cdb6d9989c472a9713bb22bd34cdf8ec8491d4d9..e6a1290e7431c3293f7551d880fcbf5edd40a910 100755 (executable)
@@ -54,7 +54,7 @@ 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|
       if options[:scaffold] # we need to fix the sequence name for mate-pair IDBA
-        if records[:SEQ_NAME] =~ /1$/
+        if record[:SEQ_NAME] =~ /1$/
           record[:SEQ_NAME] = "read#{count}/1"
         else
           record[:SEQ_NAME] = "read#{count}/2"