X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bp_bin%2Fmatch_seq;h=d5362fa1a8f12dbd38dcc224aa8a50901c111260;hb=2f0fd91b461033529a4a72e161bd133252a22eb6;hp=b418f3c1ff91bb832dab5afa3dffd5ec61983e5c;hpb=66938be910a5642b50ddf28991649858b5c36580;p=biopieces.git diff --git a/bp_bin/match_seq b/bp_bin/match_seq index b418f3c..d5362fa 100755 --- a/bp_bin/match_seq +++ b/bp_bin/match_seq @@ -1,4 +1,4 @@ -#!/usr/bin/env perl -w +#!/usr/bin/env perl # Copyright (C) 2007-2009 Martin A. Hansen. @@ -26,10 +26,10 @@ # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< +use warnings; use strict; use Maasha::Biopieces; use Maasha::Match; -use Maasha::Filesys; # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< @@ -64,15 +64,13 @@ 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 }; } -Maasha::Filesys::dir_remove( $tmp_dir ); - Maasha::Biopieces::close_stream( $in ); Maasha::Biopieces::close_stream( $out );