]> git.donarmstrong.com Git - biopieces.git/blobdiff - bp_bin/match_seq
refactoring of assemble_pairs
[biopieces.git] / bp_bin / match_seq
index dd1ac6392177bb799d47d00d2e124b16350ffc72..d5362fa1a8f12dbd38dcc224aa8a50901c111260 100755 (executable)
@@ -26,6 +26,7 @@
 # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
 
 
+use warnings;
 use strict;
 use Maasha::Biopieces;
 use Maasha::Match;
@@ -63,9 +64,9 @@ if ( @entries == 1 )
 
     map { Maasha::Biopieces::put_record( $_, $out ) } @{ $results };
 }
-elsif ( @entries == 2 )
+else
 {
-    $results = Maasha::Match::match_mummer( [ $entries[ 0 ] ], [ $entries[ 1 ] ], $options, $tmp_dir );
+    $results = Maasha::Match::match_mummer( [ shift @entries ], \@entries, $options, $tmp_dir );
 
     map { Maasha::Biopieces::put_record( $_, $out ) } @{ $results };
 }