]> git.donarmstrong.com Git - biopieces.git/blobdiff - bp_bin/fold_seq
adding bzip2 support in ruby
[biopieces.git] / bp_bin / fold_seq
index 1207cfe9bc46a84c476f64003bdd203f0f116016..4543920c2f749484ac3dddcd7311a677075780d4 100755 (executable)
@@ -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;