]> 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:58:08 +0000 (09:58 +0000)
committermartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Wed, 13 Mar 2013 09:58:08 +0000 (09:58 +0000)
git-svn-id: http://biopieces.googlecode.com/svn/trunk@2139 74ccb610-7750-0410-82ae-013aeee3265d

bp_bin/assemble_pairs2

index 3741222a0f2a03e9983f1d390017d4870bd092e0..c7bfe1bc7007dbca8cd24c98d8c434b554585882 100755 (executable)
@@ -55,7 +55,10 @@ Biopieces.open(options[:stream_in], options[:stream_out]) do |input, output|
         entry2.reverse!.complement!
       end
 
-      if entry1 and entry2
+      if entry1 and
+         entry2 and
+         entry1.length >= options[:overlap_min] and
+         entry2.length >= options[:overlap_min]
         merged = Assemble.pair(
           entry1,
           entry2,