X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bp_bin%2Ffold_seq;h=4543920c2f749484ac3dddcd7311a677075780d4;hb=5de6112b70b59420b245ce636a8b2e3c90acbe00;hp=656310748412d6c037c2e91ad0e2c6479e065de4;hpb=5aed4676ad1bf35abbade6215ac90ee591e6d8fe;p=biopieces.git diff --git a/bp_bin/fold_seq b/bp_bin/fold_seq index 6563107..4543920 100755 --- a/bp_bin/fold_seq +++ b/bp_bin/fold_seq @@ -26,6 +26,7 @@ # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< +use warnings; use strict; use Maasha::Biopieces; @@ -44,11 +45,9 @@ while ( $record = Maasha::Biopieces::get_record( $in ) ) { if ( $record->{ "SEQ" } ) { - if ( not $type ) { - $type = Maasha::Seq::seq_guess_type( $record->{ "SEQ" } ); - } + $type = Maasha::Seq::seq_guess_type( $record->{ "SEQ" } ) if not $type; - if ( $type ne "protein" ) + if ( $type ne "PROTEIN" ) { ( $struct, $index ) = Maasha::Seq::fold_struct_rnafold( $record->{ "SEQ" } ); $record->{ "SEC_STRUCT" } = $struct;