X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bp_bin%2Fcomplement_seq;h=10a3a043d5e607b921d409d07d6cbae010a8a4fb;hb=bc7b9f68c35624bd8a605e35f9a15dfbf66ae37d;hp=6e7ba9053d58109f18a8ef6957f9e29f4571f7ad;hpb=66938be910a5642b50ddf28991649858b5c36580;p=biopieces.git diff --git a/bp_bin/complement_seq b/bp_bin/complement_seq index 6e7ba90..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" } ); } }