53 lines
1.9 KiB
Ruby
53 lines
1.9 KiB
Ruby
class Abyss < Formula
|
|
desc "Genome sequence assembler for short reads"
|
|
homepage "https://www.bcgsc.ca/resources/software/abyss"
|
|
url "https://github.com/bcgsc/abyss/releases/download/2.2.4/abyss-2.2.4.tar.gz"
|
|
sha256 "f064a8c5ad152a37963d9001df6c89d744370f7ec5a387307747c4647360a47c"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "800aa54afd53c585943f86d701ca58a95059577181fdb4a47bf9f08b249e230e" => :catalina
|
|
sha256 "03e6dc19bfb76f35b4b35c5fb65c88ea4fa28b3c3e112727465a7a5e2fd5ee09" => :mojave
|
|
sha256 "9ce078498ce23f6a894ca79dd21bee8c6c7e24aeb0ae95d3ccd7091fc55091a2" => :high_sierra
|
|
end
|
|
|
|
head do
|
|
url "https://github.com/bcgsc/abyss.git"
|
|
|
|
depends_on "autoconf" => :build
|
|
depends_on "automake" => :build
|
|
depends_on "multimarkdown" => :build
|
|
end
|
|
|
|
depends_on "boost" => :build
|
|
depends_on "google-sparsehash" => :build
|
|
depends_on "gcc"
|
|
depends_on "open-mpi"
|
|
|
|
fails_with :clang # no OpenMP support
|
|
|
|
resource("testdata") do
|
|
url "https://www.bcgsc.ca/sites/default/files/bioinformatics/software/abyss/releases/1.3.4/test-data.tar.gz"
|
|
sha256 "28f8592203daf2d7c3b90887f9344ea54fda39451464a306ef0226224e5f4f0e"
|
|
end
|
|
|
|
def install
|
|
ENV.delete("HOMEBREW_SDKROOT") if MacOS.version >= :mojave && MacOS::CLT.installed?
|
|
system "./autogen.sh" if build.head?
|
|
system "./configure", "--enable-maxk=128",
|
|
"--prefix=#{prefix}",
|
|
"--with-boost=#{Formula["boost"].include}",
|
|
"--with-mpi=#{Formula["open-mpi"].prefix}",
|
|
"--with-sparsehash=#{Formula["google-sparsehash"].prefix}",
|
|
"--disable-dependency-tracking",
|
|
"--disable-silent-rules"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
testpath.install resource("testdata")
|
|
system "#{bin}/abyss-pe", "k=25", "name=ts", "in=reads1.fastq reads2.fastq"
|
|
system "#{bin}/abyss-fac", "ts-unitigs.fa"
|
|
end
|
|
end
|