[BioRuby] FASTA problem

Fredrik Johansson fredjoha at bioreg.kyushu-u.ac.jp
Fri May 18 01:17:12 UTC 2007


Hello,
I had problem running a fasta search locally on my computer, and it
turned out that Kernel.exec(*cmd) is not very happy to get the array cmd
with nil as one of its element. This is however what happens in
bio/app/fasta.rb, if ktup is not set. I changed this to make it work :

--- fasta.rb.old        2007-05-18 09:55:01.000000000 +0900
+++ fasta.rb    2007-05-18 09:55:37.000000000 +0900
@@ -114,7 +114,8 @@
 
   def exec_local(query)
     cmd = [ @program, *@options ]
-    cmd.concat([ '@', @db, @ktup ])
+    cmd.concat([ '@', @db])
+    cmd.push(@ktup) if @ktup
 
     report = nil
 
Something to submit to the repository?

Best regards,
Fredrik




More information about the BioRuby mailing list