]> git.donarmstrong.com Git - biopieces.git/blobdiff - bp_bin/complement_seq
refactoring of assemble_pairs
[biopieces.git] / bp_bin / complement_seq
index 193d9e4838be10f0a19dfe9e2b2046571aa52c0d..10a3a043d5e607b921d409d07d6cbae010a8a4fb 100755 (executable)
@@ -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" } );
         }
     }