X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bp_bin%2Fread_soft;h=10ae8c1bb405914db2d0c83c5e6a343de7a79ca1;hb=5de6112b70b59420b245ce636a8b2e3c90acbe00;hp=c51ba9051eeec77a77dec273fd31d53b70d477b7;hpb=b607bb9d6e4adcebd9f9e128aacc91a212010ee0;p=biopieces.git diff --git a/bp_bin/read_soft b/bp_bin/read_soft index c51ba90..10ae8c1 100755 --- a/bp_bin/read_soft +++ b/bp_bin/read_soft @@ -1,4 +1,4 @@ -#!/usr/bin/env perl -w +#!/usr/bin/env perl # Copyright (C) 2007-2009 Martin A. Hansen. @@ -27,7 +27,9 @@ # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< +use warnings; use strict; +use Data::Dumper; use Maasha::Biopieces; use Maasha::Filesys; use Maasha::NCBI; @@ -62,6 +64,8 @@ foreach $file ( @{ $options->{ "data_in" } } ) $soft_index = Maasha::NCBI::soft_index_file( $file ); + # print STDERR Dumper( $soft_index ) if $options->{ "verbose" }; + $fh = Maasha::Filesys::file_read_open( $file ); @platforms = grep { $_->{ "SECTION" } =~ /PLATFORM/ } @{ $soft_index }; @@ -103,25 +107,22 @@ NUM: close $data_in if $data_in; close $fh if $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(); }