prodigal: import from Homebrew/science

Closes #21574.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
master
Shaun Jackman 2017-12-11 12:23:39 -08:00 committed by ilovezfs
parent c3012f87c7
commit f8079a93c8
1 changed files with 18 additions and 0 deletions

18
Formula/prodigal.rb Normal file
View File

@ -0,0 +1,18 @@
class Prodigal < Formula
desc "Microbial gene prediction"
homepage "https://github.com/hyattpd/Prodigal"
url "https://github.com/hyattpd/Prodigal/archive/v2.6.3.tar.gz"
sha256 "89094ad4bff5a8a8732d899f31cec350f5a4c27bcbdd12663f87c9d1f0ec599f"
def install
system "make", "install", "INSTALLDIR=#{bin}"
end
test do
fasta = <<~EOS
>U00096.2:1-70
AGCTTTTCATTCTGACTGCAACGGGCAATATGTCTCTGTGTGGATTAAAAAAAGAGTGTCTGATAGCAGC
EOS
assert_match "CDS", pipe_output("#{bin}/prodigal -q -p meta", fasta, 0)
end
end