forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsnpeff.rb
41 lines (35 loc) · 1.27 KB
/
snpeff.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
class Snpeff < Formula
desc "Genetic variant annotation and effect prediction toolbox"
homepage "http://snpeff.sourceforge.net/"
# tag "bioinformatics"
# doi "10.4161/fly.19695"
url "https://downloads.sourceforge.net/project/snpeff/snpEff_v4_1g_core.zip"
version "4.1g"
sha256 "c8528928f5f206d5bb6003f0ef12e50c40d84cd69d3c2dff21df9f93704e2ca0"
bottle do
cellar :any
revision 1
sha256 "2c6e9f12378588d0ea09b270fe39b2b7f2c6c673db3e7d7be94575be76c9d721" => :yosemite
sha256 "7644372e72ccaa446192b4fcf883f1b8d218955660b4b9c839e67631994b8d13" => :mavericks
sha256 "9d67ed82b345a0e6aa4256e7d675d52b4cbe88ae3a0996552114bb3e37f300ef" => :mountain_lion
end
depends_on :java => "1.7+"
def install
inreplace "scripts/snpEff" do |s|
s.gsub! /^jardir=.*/, "jardir=#{libexec}"
s.gsub! "${jardir}/snpEff.config", "#{pkgshare}/snpEff.config"
end
bin.install "scripts/snpEff"
libexec.install "snpEff.jar", "SnpSift.jar"
pkgshare.install "snpEff.config", "scripts", "galaxy"
end
def caveats; <<-EOS.undent
Download the human database using the command
snpEff download -v GRCh38.76
The databases will be installed in #{pkgshare}/data
EOS
end
test do
system "#{bin}/snpEff 2>&1 |grep -q snpEff"
end
end