lib/npsearch/signalp.rb in npsearch-2.1.4 vs lib/npsearch/signalp.rb in npsearch-2.1.6

- old
+ new

@@ -22,10 +22,10 @@ end private def run_signalp(seq, sp_headers) - timeout(300) do + Timeout.timeout(300) do cmd = "echo '>seq\n#{seq}\n' | #{opt[:signalp_path]} -t euk" \ ' -f short -U 0.34 -u 0.34' stdin, stdout, stderr = Open3.popen3(cmd) out = stdout.gets(nil).split("\n").delete_if { |l| l[0] == '#' } if out.nil? || out.empty?