X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bp_bin%2Fcreate_weight_matrix;h=ac7d12c4baa5936f41f3ae90dbb0cbc108625fc7;hb=5de6112b70b59420b245ce636a8b2e3c90acbe00;hp=44a211c2d180faaa1b0712c5feb6419f98c54777;hpb=feaa3fbccdc23c3bf35c5a9861cede0f69a6b62f;p=biopieces.git diff --git a/bp_bin/create_weight_matrix b/bp_bin/create_weight_matrix index 44a211c..ac7d12c 100755 --- a/bp_bin/create_weight_matrix +++ b/bp_bin/create_weight_matrix @@ -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::Common; use Maasha::Biopieces; @@ -34,7 +35,7 @@ use Maasha::Biopieces; # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< -my ( $run_time_beg, $run_time_end, $options, $in, $out, $record, $count, $i, $res, %freq_hash, %res_hash, $freq ); +my ( $options, $in, $out, $record, $count, $i, $res, %freq_hash, %res_hash, $freq ); $options = Maasha::Biopieces::parse_options( [ @@ -87,25 +88,22 @@ foreach $res ( sort keys %res_hash ) Maasha::Biopieces::put_record( $record, $out ); } +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(); }