homebrew-core/Formula/abyss.rb

50 lines
1.6 KiB
Ruby
Raw Normal View History

class Abyss < Formula
desc "Genome sequence assembler for short reads"
homepage "http://www.bcgsc.ca/platform/bioinfo/software/abyss"
url "https://github.com/bcgsc/abyss/releases/download/2.0.2/abyss-2.0.2.tar.gz"
sha256 "d87b76edeac3a6fb48f24a1d63f243d8278a324c9a5eb29027b640f7089422df"
revision 2
2017-09-25 07:39:50 +00:00
bottle do
cellar :any
2017-12-25 09:40:05 +00:00
sha256 "ce8630fea803a61997945b0ed586aeec7c241bf01c7104fb1ab4c8d6e394c9a2" => :high_sierra
sha256 "64603ca276be840119ac8b17a1d4ab6d3c971f552c3d501ec6f2a894c1370424" => :sierra
sha256 "4ca81231e09f8c2587be53e58df8a344ecca3d38def5cb9bd92ffc56f0637c7e" => :el_capitan
2017-09-25 07:39:50 +00:00
end
head do
url "https://github.com/bcgsc/abyss.git"
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "multimarkdown" => :build
end
needs :openmp
depends_on "boost" => :build
depends_on "google-sparsehash" => :build
depends_on "gcc"
depends_on :mpi => :cc
resource("testdata") do
url "http://www.bcgsc.ca/platform/bioinfo/software/abyss/releases/1.3.4/test-data.tar.gz"
sha256 "28f8592203daf2d7c3b90887f9344ea54fda39451464a306ef0226224e5f4f0e"
end
def install
system "./autogen.sh" if build.head?
system "./configure", "--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}",
"--enable-maxk=128"
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