X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bp_bin%2Ftile_seq;h=9a7dcfd8410bf139e62ce76c200428edc9f92890;hb=48bea5c28b89dc5586d0bddb338ccd6ba23aa1f9;hp=500f70530b04be7d6a8298ee21726443ad76bc70;hpb=4ca5508a67a6b1b0e594d05f314d8ca1a28178ae;p=biopieces.git diff --git a/bp_bin/tile_seq b/bp_bin/tile_seq index 500f705..9a7dcfd 100755 --- a/bp_bin/tile_seq +++ b/bp_bin/tile_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, $first, $ref_entry, @entries ); +my ( $options, $in, $out, $record, $first, $ref_entry, @entries ); $options = Maasha::Biopieces::parse_options( [ @@ -78,26 +79,22 @@ while ( $record = Maasha::Biopieces::get_record( $in ) ) map { Maasha::Biopieces::put_record( { SEQ_NAME => $_->[ SEQ_NAME ], SEQ => $_->[ SEQ ] }, $out ) } @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(); } @@ -105,4 +102,3 @@ END __END__ -