]> git.donarmstrong.com Git - biopieces.git/blobdiff - bp_bin/complement_seq
adding bzip2 support in ruby
[biopieces.git] / bp_bin / complement_seq
index 38d1dae27056706b884fc7105c75cfd14fd0abb4..10a3a043d5e607b921d409d07d6cbae010a8a4fb 100755 (executable)
@@ -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__
-
-