50 lines
2.2 KiB
Ruby
50 lines
2.2 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.11.tar.gz"
|
|
sha256 "41f3197aaafff9c42763fb7658b67f730ebc6dd3c0533c9c3d54bd3166e93f24"
|
|
license "GPL-3.0-or-later"
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, arm64_big_sur: "90432e28bfcd7ba419923f19dc1f49cd3894e71abf9dee084d2b4a8980a3de48"
|
|
sha256 cellar: :any_skip_relocation, big_sur: "746111bc7742376273e84d87c6cd4b09cc2855e4dcf80b7025b09359cdee9496"
|
|
sha256 cellar: :any_skip_relocation, catalina: "32a3256fb14aebed74c553136929c656ebd4a9423dfa02524886648fd86ae8f7"
|
|
sha256 cellar: :any_skip_relocation, mojave: "882151cea4d518d0d5f32b13a2eb495b0ea88c845aebbd2b99a8aef1cef8db3f"
|
|
sha256 cellar: :any_skip_relocation, x86_64_linux: "ce393bc62d88cdb7f418fb7fae8603f5ae3790c9040261b182f1f69a6ead72c6"
|
|
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
|