45 lines
1.8 KiB
Ruby
45 lines
1.8 KiB
Ruby
class Diamond < Formula
|
|
desc "Accelerated BLAST compatible local sequence aligner"
|
|
homepage "https://ab.inf.uni-tuebingen.de/software/diamond/"
|
|
url "https://github.com/bbuchfink/diamond/archive/v0.9.17.tar.gz"
|
|
sha256 "cda79a6c3de73545dc783722edb17ae0828efb2553eac113e0e2c1d354686edc"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "3d4609c1000c0a500577707f944ef5005e4909d53643e31dd2dc9f3238b5141e" => :high_sierra
|
|
sha256 "25881f0e1104f19bf7e6cd4863241d88e3579401f6cf583c978f08c830bcb6c9" => :sierra
|
|
sha256 "aa60cd061001ffe028d5a03658f2dbd1d68eb17be8b2670b2f69eef98a1feb0a" => :el_capitan
|
|
end
|
|
|
|
depends_on "cmake" => :build
|
|
|
|
def install
|
|
system "cmake", ".", *std_cmake_args
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
(testpath/"nr.faa").write <<~EOS
|
|
>gnl|alu|HSU14568_Alu_Sb_consensus_rf1
|
|
grarwltpvipalweaeaggsrgqeietilantvkprlyXkyknXpgvvagacspsysgg
|
|
XgrrmaXtreaelavsrdratalqpgrqsetpsqkk
|
|
>gnl|alu|HSU14568_Alu_Sb_consensus_rf2
|
|
agrggsrlXsqhfgrprradhevrrsrpswltrXnpvstkntkisrawwrapvvpatrea
|
|
eagewrepgrrslqXaeiaplhsslgdrarlrlkk
|
|
>gnl|alu|HSU14568_Alu_Sb_consensus_rf3
|
|
pgavahacnpstlggrggritrsgdrdhpgXhgetpsllkiqklagrgggrlXsqllgrl
|
|
rqengvnpgggacseprsrhctpawaterdsvskk
|
|
>gnl|alu|HSU14568_Alu_Sb_consensus_rf-1
|
|
fflrrslalsprlecsgaisahcklrlpgsrhspasasrvagttgarhharlifvflvet
|
|
gfhrvsqdgldlltsXsarlglpkcwdyrrepprpa
|
|
>gnl|alu|HSU14568_Alu_Sb_consensus_rf-2
|
|
ffXdgvslcrpgwsavarsrltassasrvhaillpqppeXlglqapattpgXflyfXXrr
|
|
gftvlarmvsisXprdppasasqsagitgvshrar
|
|
>gnl|alu|HSU14568_Alu_Sb_consensus_rf-3
|
|
ffetesrsvaqagvqwrdlgslqapppgftpfsclslpsswdyrrppprpanfcifsrdg
|
|
vspcXpgwsrspdlvirpprppkvlglqaXatapg
|
|
EOS
|
|
output = shell_output("#{bin}/diamond makedb --in nr.faa -d nr")
|
|
assert_match "Processed 6 sequences, 572 letters.", output
|
|
end
|
|
end
|