]> git.donarmstrong.com Git - biopieces.git/commitdiff
added check for minimum seq length
authormartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Wed, 13 Mar 2013 09:59:23 +0000 (09:59 +0000)
committermartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Wed, 13 Mar 2013 09:59:23 +0000 (09:59 +0000)
git-svn-id: http://biopieces.googlecode.com/svn/trunk@2140 74ccb610-7750-0410-82ae-013aeee3265d

bp_bin/assemble_pairs2

index c7bfe1bc7007dbca8cd24c98d8c434b554585882..611ca56609c63b236722ded3769725f94675e8e2 100755 (executable)
@@ -51,14 +51,15 @@ Biopieces.open(options[:stream_in], options[:stream_out]) do |input, output|
         entry1 = Seq.new_bp(record)
       elsif entry2.nil?
         entry2 = Seq.new_bp(record)
-        entry2.type = :dna
-        entry2.reverse!.complement!
       end
 
       if entry1 and
          entry2 and
          entry1.length >= options[:overlap_min] and
          entry2.length >= options[:overlap_min]
+        entry2.type = :dna
+        entry2.reverse!.complement!
+
         merged = Assemble.pair(
           entry1,
           entry2,