2017-09-25 06:44:46 +00:00
|
|
|
class Bowtie2 < Formula
|
|
|
|
desc "Fast and sensitive gapped read aligner"
|
|
|
|
homepage "https://bowtie-bio.sourceforge.io/"
|
2017-10-06 02:23:21 +00:00
|
|
|
url "https://github.com/BenLangmead/bowtie2/archive/v2.3.3.1.tar.gz"
|
|
|
|
sha256 "8b9c0b9c595ebcddcac5feaf6acb44b2294d6deb91de107596ecad242a1a58e9"
|
2017-09-25 06:44:46 +00:00
|
|
|
|
2017-09-25 08:00:05 +00:00
|
|
|
bottle do
|
2017-10-06 02:55:41 +00:00
|
|
|
sha256 "fa4f67c2361205d54698e9a87f2a586d95ae8c34aa50c98bb72c3d522903333f" => :high_sierra
|
|
|
|
sha256 "b57f2ec643d75111a7f1078d656e376e24bd871fe04ca32fa63cfb2b292bdacd" => :sierra
|
|
|
|
sha256 "8455b5498446476972e353ca55b31e8acbd141c696cc8562edcc16a0d4235584" => :el_capitan
|
2017-09-25 08:00:05 +00:00
|
|
|
end
|
|
|
|
|
2017-09-25 06:44:46 +00:00
|
|
|
depends_on "tbb"
|
|
|
|
|
|
|
|
def install
|
|
|
|
tbb = Formula["tbb"]
|
|
|
|
system "make", "install", "WITH_TBB=1", "prefix=#{prefix}",
|
|
|
|
"EXTRA_FLAGS=-L #{tbb.opt_lib}", "INC=-I #{tbb.opt_include}"
|
|
|
|
|
|
|
|
pkgshare.install "example", "scripts"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/bowtie2-build",
|
|
|
|
"#{pkgshare}/example/reference/lambda_virus.fa", "lambda_virus"
|
|
|
|
assert_predicate testpath/"lambda_virus.1.bt2", :exist?,
|
|
|
|
"Failed to create viral alignment lambda_virus.1.bt2"
|
|
|
|
end
|
|
|
|
end
|