32 lines
1.3 KiB
Ruby
32 lines
1.3 KiB
Ruby
class Bedops < Formula
|
|
desc "Set and statistical operations on genomic data of arbitrary scale"
|
|
homepage "https://github.com/bedops/bedops"
|
|
url "https://github.com/bedops/bedops/archive/v2.4.39.tar.gz"
|
|
sha256 "f8bae10c6e1ccfb873be13446c67fc3a54658515fb5071663883f788fc0e4912"
|
|
license "GPL-2.0"
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, arm64_big_sur: "4841f0a68a87db34e0a64afd1c802d7af622773f1a7d3bf3e13a52dc7d790a3d"
|
|
sha256 cellar: :any_skip_relocation, big_sur: "c2b678454a352033f226fbc3e08163ab7ede676572b7b96b993189cf35df70ff"
|
|
sha256 cellar: :any_skip_relocation, catalina: "067fa5b0cf0288e60ec7378b07b622218ff385dfc7cadd19ac6fe92ef087aff3"
|
|
sha256 cellar: :any_skip_relocation, mojave: "a3e404afc30d1f77ebfd5c713933a36fed137ab2086da3d7a07ff08d2cd36fb6"
|
|
sha256 cellar: :any_skip_relocation, high_sierra: "d30e93e415036d271dd424feebc451de8de2e6ed195f950ff6682623c2969dab"
|
|
end
|
|
|
|
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
|