forked from ahmadia/homebrew-science
/
barrnap.rb
29 lines (23 loc) · 1.01 KB
/
barrnap.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
class Barrnap < Formula
desc "BAsic Rapid Ribosomal RNA Predictor"
homepage "https://github.com/tseemann/barrnap"
# tag "bioinformatics"
url "https://github.com/tseemann/barrnap/archive/0.7.tar.gz"
sha256 "ef2173e250f06cca7569c03404c9d4ab6a908ef7643e28901fbe9a732d20c09b"
head "https://github.com/tseemann/barrnap.git"
bottle do
cellar :any
sha256 "fec76972178844abb223274fc4a3c45b987168d2163c4074998100d688a97e6a" => :yosemite
sha256 "3d84c1dfdac365506270abd6df0e0c451ef43df9039829d52eefe7b59ada2b14" => :mavericks
sha256 "362da60326bfc61270f00879a30ecfb97e423893c210612c292f6c0e51ec4d81" => :mountain_lion
end
depends_on "hmmer"
def install
prefix.install Dir["*"]
end
test do
assert_match "##gff-version", shell_output("barrnap -q #{prefix}/examples/nohits.fna")
assert_match "Name=16S_rRNA", shell_output("barrnap -q #{prefix}/examples/small.fna")
assert_match "Name=16S_rRNA", shell_output("barrnap -q --kingdom mito #{prefix}/examples/mitochondria.fna")
end
end