X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bp_bin%2Fwrite_psl;h=776676d782a8d80202c4293130e111bf7d3a0bd4;hb=9bd8d05f53c3908907b379025ed64b90d26ddd5e;hp=43c85d485af0313dc43771328395eb0619944ef4;hpb=b607bb9d6e4adcebd9f9e128aacc91a212010ee0;p=biopieces.git diff --git a/bp_bin/write_psl b/bp_bin/write_psl index 43c85d4..776676d 100755 --- a/bp_bin/write_psl +++ b/bp_bin/write_psl @@ -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::UCSC::PSL; @@ -57,33 +58,30 @@ while ( $record = Maasha::Biopieces::get_record( $in ) ) if ( $record->{ "REC_TYPE" } and $record->{ "REC_TYPE" } eq "PSL" ) { - Maasha::UCSC::psl_put_header( $fh ) if $first; - Maasha::UCSC::psl_put_entry( $record, $fh ); + Maasha::UCSC::PSL::psl_put_header( $fh ) if $first; + Maasha::UCSC::PSL::psl_put_entry( $record, $fh ); $first = 0; } } close $fh; +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(); }