]> git.donarmstrong.com Git - biopieces.git/commitdiff
fixed type in assemble_seq_idba
authormartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Thu, 26 May 2011 12:55:58 +0000 (12:55 +0000)
committermartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Thu, 26 May 2011 12:55:58 +0000 (12:55 +0000)
git-svn-id: http://biopieces.googlecode.com/svn/trunk@1434 74ccb610-7750-0410-82ae-013aeee3265d

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"