X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bp_bin%2Falign_seq;h=632d732f21fe47bcdc054061bcc210f9fbdae8fe;hb=62ccc0892d1ec2497796aa340bf97c663511996f;hp=86ea57763f23f12d6e89d08188fb46a10e6593be;hpb=4fa91ffb3634172235cf727ea8f426c56fb426c1;p=biopieces.git diff --git a/bp_bin/align_seq b/bp_bin/align_seq index 86ea577..632d732 100755 --- a/bp_bin/align_seq +++ b/bp_bin/align_seq @@ -1,4 +1,4 @@ -#!/usr/bin/env perl -w +#!/usr/bin/env perl # Copyright (C) 2007-2009 Martin A. Hansen. @@ -26,6 +26,7 @@ # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< +use warnings; use strict; use Maasha::Biopieces; use Maasha::Align; @@ -39,7 +40,7 @@ use constant { # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< -my ( $run_time_beg, $run_time_end, $options, $in, $out, $record, @entries, $entry ); +my ( $options, $in, $out, $record, @entries, $entry ); $options = Maasha::Biopieces::parse_options(); @@ -48,7 +49,7 @@ $out = Maasha::Biopieces::write_stream( $options->{ "stream_out" } ); while ( $record = Maasha::Biopieces::get_record( $in ) ) { - if ( $record->{ "SEQ_NAME" } and $record->{ "SEQ" } ) { + if ( $record->{ "SEQ_NAME" } and $record->{ "SEQ" } ) { # TODO use biopieces2fasta() instead push @entries, [ $record->{ "SEQ_NAME" }, $record->{ "SEQ" } ]; } elsif ( $record->{ "Q_ID" } and $record->{ "SEQ" } ) { push @entries, [ $record->{ "Q_ID" }, $record->{ "SEQ" } ]; @@ -73,26 +74,22 @@ foreach $entry ( @entries ) } } +Maasha::Biopieces::close_stream( $in ); +Maasha::Biopieces::close_stream( $out ); + # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< BEGIN { - $run_time_beg = Maasha::Biopieces::run_time(); - - Maasha::Biopieces::log_biopiece(); + Maasha::Biopieces::status_set(); } END { - Maasha::Biopieces::close_stream( $in ); - Maasha::Biopieces::close_stream( $out ); - - $run_time_end = Maasha::Biopieces::run_time(); - - Maasha::Biopieces::run_time_print( $run_time_beg, $run_time_end, $options ); + Maasha::Biopieces::status_log(); } @@ -100,4 +97,3 @@ END __END__ -