]> git.donarmstrong.com Git - biopieces.git/blobdiff - bp_bin/patscan_seq
fixed bug in uclust_seq
[biopieces.git] / bp_bin / patscan_seq
index 2d828f694cf852064326f59b43261d8922e1df76..ca4fc983f47629bb78e960ea21f15f335bb68f5f 100755 (executable)
@@ -82,7 +82,7 @@ else
 
     while ( $record = Maasha::Biopieces::get_record( $in ) ) 
     {
-        if ( $entry = Maasha::Biopieces::biopiece2fasta( $record ) )
+        if ( $entry = Maasha::Fasta::biopiece2fasta( $record ) )
         {
             $type = Maasha::Seq::seq_guess_type( $record->{ "SEQ" } ) if not $type;
         
@@ -98,7 +98,7 @@ else
 
     close $fh_out;
 
-    $arg .= " -p" if $type eq "protein";
+    $arg .= " -p" if $type eq "PROTEIN";
 }
 
 foreach $pattern ( @{ $patterns } )