]> git.donarmstrong.com Git - biopieces.git/blobdiff - bp_bin/blast_seq_pair
refactoring of ruby code converting sequences types to symbols
[biopieces.git] / bp_bin / blast_seq_pair
index 1963eafc4b128d94579d6d02e86cddf14964962c..d612a6cdc06b7c3ead49bdae36945b5ae3f01e66 100755 (executable)
@@ -121,14 +121,14 @@ class Blast
   def program_choose(type1, type2)
     program = ""
 
-    if type1 == 'protein'
-      if type2 == 'protein'
+    if type1 == :protein
+      if type2 == :protein
         program = 'blastp'
       else
         program = 'tblastn'
       end
     else
-      if type2 == 'protein'
+      if type2 == :protein
         program = 'blastx'
       else
         program = 'blastn'