43 lines
1.5 KiB
Ruby
43 lines
1.5 KiB
Ruby
class Kallisto < Formula
|
|
desc "Quantify abundances of transcripts from RNA-Seq data"
|
|
homepage "https://pachterlab.github.io/kallisto/"
|
|
url "https://github.com/pachterlab/kallisto/archive/v0.44.0.tar.gz"
|
|
sha256 "35a81201a56f4557697e6fe693dc6b701bbbd0a7b2b6e1c6c845ef816d67ca29"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "e5c4fcf742ff84d42744ff61df47494326ec0a6aa603c0f7d2001a08159904fa" => :high_sierra
|
|
sha256 "661ff267798eac80579c4076d52ab9ee2438ec0bdb0c107f9cc9baeec4f95675" => :sierra
|
|
sha256 "0e4a7def1a19531b7147b1679ecc66fd60be35252cf07fbc733460e957de1a26" => :el_capitan
|
|
end
|
|
|
|
depends_on "autoconf" => :build
|
|
depends_on "automake" => :build
|
|
depends_on "cmake" => :build
|
|
depends_on "hdf5"
|
|
|
|
def install
|
|
# Upstream issue 15 Feb 2018 "cmake does not run autoreconf for htslib"
|
|
# https://github.com/pachterlab/kallisto/issues/159
|
|
system "autoreconf", "-fiv", "ext/htslib"
|
|
|
|
system "cmake", ".", *std_cmake_args
|
|
|
|
# Upstream issue 15 Feb 2018 "parallelized build failure"
|
|
# https://github.com/pachterlab/kallisto/issues/160
|
|
# Upstream issue 15 Feb 2018 "cannot use system htslib"
|
|
# https://github.com/pachterlab/kallisto/issues/161
|
|
system "make", "htslib"
|
|
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
(testpath/"test.fasta").write <<~EOS
|
|
>seq0
|
|
FQTWEEFSRAAEKLYLADPMKVRVVLKYRHVDGNLCIKVTDDLVCLVYRTDQAQDVKKIEKF
|
|
EOS
|
|
output = shell_output("#{bin}/kallisto index -i test.index test.fasta 2>&1")
|
|
assert_match "has 1 contigs and contains 32 k-mers", output
|
|
end
|
|
end
|