X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bp_bin%2Ffold_seq;h=4543920c2f749484ac3dddcd7311a677075780d4;hb=2f0fd91b461033529a4a72e161bd133252a22eb6;hp=1207cfe9bc46a84c476f64003bdd203f0f116016;hpb=9bf550c4335d8860c5f6f9c4db0f385f1b36c1dd;p=biopieces.git diff --git a/bp_bin/fold_seq b/bp_bin/fold_seq index 1207cfe..4543920 100755 --- a/bp_bin/fold_seq +++ b/bp_bin/fold_seq @@ -45,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;