parent
3fd0ab2b96
commit
cfac866030
|
@ -0,0 +1,27 @@
|
|||
class Vsearch < Formula
|
||||
desc "Versatile open-source tool for microbiome analysis"
|
||||
homepage "https://github.com/torognes/vsearch"
|
||||
url "https://github.com/torognes/vsearch/archive/v2.15.0.tar.gz"
|
||||
sha256 "c5d6eca1e4bf0c6e28221356b806c1d2322b51c39f40888636ab094c4df2e231"
|
||||
|
||||
depends_on "autoconf" => :build
|
||||
depends_on "automake" => :build
|
||||
|
||||
def install
|
||||
system "./autogen.sh"
|
||||
system "./configure", "--disable-dependency-tracking",
|
||||
"--disable-silent-rules",
|
||||
"--prefix=#{prefix}"
|
||||
system "make"
|
||||
system "make", "install"
|
||||
end
|
||||
|
||||
test do
|
||||
(testpath/"test.fasta").write <<~EOS
|
||||
>U00096.2:1-70
|
||||
AGCTTTTCATTCTGACTGCAACGGGCAATATGTCTCTGTGTGGATTAAAAAAAGAGTGTCTGATAGCAGC
|
||||
EOS
|
||||
system bin/"vsearch", "--rereplicate", "test.fasta", "--output", "output.txt"
|
||||
assert_predicate testpath/"output.txt", :exist?
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue