X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bp_bin%2Fremove_ucsc_tracks;h=4148da8f30242fe87b090120489b8f69cc2071ea;hb=25a6b40e414b3a6465f18239f37a980d77d6e062;hp=82db5d5c9cdae031365f1d172506d2be6b3f9ee9;hpb=8615d63d95a3da435ad0fc61d98bfc6c15d454f8;p=biopieces.git diff --git a/bp_bin/remove_ucsc_tracks b/bp_bin/remove_ucsc_tracks index 82db5d5..4148da8 100755 --- a/bp_bin/remove_ucsc_tracks +++ b/bp_bin/remove_ucsc_tracks @@ -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::Common; @@ -36,7 +37,7 @@ use Maasha::UCSC; # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< -my ( $run_time_beg, $run_time_end, $options, $in, $out, $record, $conf_file, %track_hash, $fh_in, $fh_out, $track, @tracks, $dbh, @new_tracks ); +my ( $options, $in, $out, $record, $conf_file, %track_hash, $fh_in, $fh_out, $track, @tracks, $dbh, @new_tracks ); $conf_file = $ENV{ 'HOME' } . "/ucsc/my_tracks.ra"; @@ -116,26 +117,22 @@ Maasha::SQL::disconnect( $dbh ); Maasha::Common::run( "ucscMakeTracks.pl", "-b > /dev/null 2>&1" ); +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(); } @@ -143,4 +140,3 @@ END __END__ -