2017-12-29 16:35:15 +00:00
|
|
|
class Bedops < Formula
|
|
|
|
desc "Set and statistical operations on genomic data of arbitrary scale"
|
|
|
|
homepage "https://github.com/bedops/bedops"
|
2018-04-10 02:43:19 +00:00
|
|
|
url "https://github.com/bedops/bedops/archive/v2.4.33.tar.gz"
|
|
|
|
sha256 "15ac2aec77702893dcd32c08d28083bd887d743d1c758ff9180ef9c53357a44f"
|
2017-12-29 16:35:15 +00:00
|
|
|
|
2017-12-29 18:12:45 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2018-04-10 02:50:46 +00:00
|
|
|
sha256 "7e6bca355ca206b71d5ece7213722d907cd782c907def2c6a6e464c090fb0389" => :high_sierra
|
|
|
|
sha256 "0331704de7ea757e4657a486e20f1467d4fdff657c5bec92bef80dd8eb9ddbc1" => :sierra
|
|
|
|
sha256 "e11490f1c098290b52b5c7575ca16b5e46180afc94492a7b41b1236cd0129780" => :el_capitan
|
2017-12-29 18:12:45 +00:00
|
|
|
end
|
|
|
|
|
2017-12-29 16:35:15 +00:00
|
|
|
needs :cxx11
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "make"
|
|
|
|
system "make", "install", "BINDIR=#{bin}"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
(testpath/"first.bed").write <<~EOS
|
|
|
|
chr1\t100\t200
|
|
|
|
EOS
|
|
|
|
(testpath/"second.bed").write <<~EOS
|
|
|
|
chr1\t300\t400
|
|
|
|
EOS
|
|
|
|
output = shell_output("#{bin}/bedops --complement first.bed second.bed")
|
|
|
|
assert_match "chr1\t200\t300", output
|
|
|
|
end
|
|
|
|
end
|