49 lines
2.1 KiB
Ruby
49 lines
2.1 KiB
Ruby
class Diamond < Formula
|
|
desc "Accelerated BLAST compatible local sequence aligner"
|
|
homepage "https://www.wsi.uni-tuebingen.de/lehrstuehle/algorithms-in-bioinformatics/software/diamond/"
|
|
url "https://github.com/bbuchfink/diamond/archive/v2.0.9.tar.gz"
|
|
sha256 "3019f1adb6411c6669a3a17351d0338ae02f6b3cab3c8a3bac91cf334dcda620"
|
|
license "GPL-3.0-or-later"
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, arm64_big_sur: "e0772434a0d7d1d7e8dc59466468ec99c9b64a8b3f36a61cebbffcb8cc2a73cd"
|
|
sha256 cellar: :any_skip_relocation, big_sur: "ce54edf8bde4bd91cf0b6c0b696d68416af69d6f536dfcc5d7bf377e8f930466"
|
|
sha256 cellar: :any_skip_relocation, catalina: "7f7620c3bd7e5a7961ed9948a2e69e52f9b194e59c4bb27ac27c558177536299"
|
|
sha256 cellar: :any_skip_relocation, mojave: "9fa62c6f96c9a32324240bd8e311918e157cadd9b521818ab98eec3c701bab08"
|
|
end
|
|
|
|
depends_on "cmake" => :build
|
|
|
|
uses_from_macos "zlib"
|
|
|
|
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 2>&1")
|
|
assert_match "Database sequences 6\n Database letters 572", output
|
|
end
|
|
end
|