35 lines
1.2 KiB
Ruby
35 lines
1.2 KiB
Ruby
class Augustus < Formula
|
|
desc "Predict genes in eukaryotic genomic sequences"
|
|
homepage "http://bioinf.uni-greifswald.de/augustus/"
|
|
url "http://bioinf.uni-greifswald.de/augustus/binaries/augustus-3.3.tar.gz"
|
|
sha256 "f6470931e835d8da16288e501f95287df0f71f6bd6b6c8b49c3cf33c1e7f18e5"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "628ec61d36ac8c0cfa088bf0aaf8facb59888d8df407027d6099385a97da9a5a" => :high_sierra
|
|
sha256 "8e6f909d5feb3a6890935646d31b70d99f7faf9315c0613c4362af3d19912c1f" => :sierra
|
|
sha256 "57d0cdab04164c968240245b95159b21e464d7988dd4063d758dbfbb93e1b25a" => :el_capitan
|
|
end
|
|
|
|
depends_on "boost"
|
|
|
|
def install
|
|
# Prevent symlinking into /usr/local/bin/
|
|
inreplace "Makefile", %r{ln -sf.*/usr/local/bin/}, "#ln -sf"
|
|
|
|
# Compile executables for macOS. Tarball ships with executables for Linux.
|
|
system "make"
|
|
|
|
system "make", "install", "INSTALLDIR=#{prefix}"
|
|
bin.env_script_all_files libexec/"bin", :AUGUSTUS_CONFIG_PATH => prefix/"config"
|
|
end
|
|
|
|
test do
|
|
(testpath/"test.fasta").write <<~EOS
|
|
>U00096.2:1-70
|
|
AGCTTTTCATTCTGACTGCAACGGGCAATATGTCTCTGTGTGGATTAAAAAAAGAGTGTCTGATAGCAGC
|
|
EOS
|
|
cmd = "#{bin}/augustus --species=human test.fasta"
|
|
assert_match "Predicted genes", shell_output(cmd)
|
|
end
|
|
end
|