X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bp_bin%2Fcomplement_seq;h=10a3a043d5e607b921d409d07d6cbae010a8a4fb;hb=2f0fd91b461033529a4a72e161bd133252a22eb6;hp=38d1dae27056706b884fc7105c75cfd14fd0abb4;hpb=b607bb9d6e4adcebd9f9e128aacc91a212010ee0;p=biopieces.git diff --git a/bp_bin/complement_seq b/bp_bin/complement_seq index 38d1dae..10a3a04 100755 --- a/bp_bin/complement_seq +++ b/bp_bin/complement_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::Seq; @@ -49,9 +50,9 @@ while ( $record = Maasha::Biopieces::get_record( $in ) ) $type = Maasha::Seq::seq_guess_type( $record->{ "SEQ" } ); } - if ( $type eq "rna" ) { + if ( $type eq "RNA" ) { Maasha::Seq::rna_comp( \$record->{ "SEQ" } ); - } elsif ( $type eq "dna" ) { + } elsif ( $type eq "DNA" ) { Maasha::Seq::dna_comp( \$record->{ "SEQ" } ); } } @@ -60,24 +61,22 @@ while ( $record = Maasha::Biopieces::get_record( $in ) ) } +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(); } @@ -85,5 +84,3 @@ END __END__ - -