forked from tseemann/homebrew-bioinformatics-linux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsnippy.rb
34 lines (28 loc) · 886 Bytes
/
snippy.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
class Snippy < Formula
desc "Rapid bacterial SNP calling and core genome alignments"
homepage "https://github.com/tseemann/snippy"
# doi ""
# tag "bioinformatics"
url "https://github.com/tseemann/snippy/archive/v2.9.tar.gz"
sha256 "8b07c83b8dc9e6ae6983a933b12d2b87b1f276678c63544c2472cd61721589a9"
head "https://github.com/tseemann/snippy.git"
depends_on "Bio::Perl" => :perl
depends_on "Time::Piece" => :perl
depends_on "bwa"
depends_on "htslib" # for 'bgzip'
depends_on "freebayes"
depends_on "parallel"
depends_on "samtools"
depends_on "vcflib"
depends_on "vcftools"
depends_on "snpeff"
def install
rm "bin/snippy-make_tarball"
prefix.install Dir["*"]
end
test do
["","-core","-vcf_report","-vcf_to_tab","-vcf_filter"].each do |suffix|
assert_match "Usage:", shell_output("snippy#{suffix} 2>&1", 1)
end
end
end