forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadapterremoval.rb
29 lines (25 loc) · 1.02 KB
/
adapterremoval.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
class Adapterremoval < Formula
desc "adapter trimming, consensus, and read merging"
homepage "https://github.com/MikkelSchubert/adapterremoval"
url "https://github.com/MikkelSchubert/adapterremoval/archive/v2.2.0.tar.gz"
sha256 "491275d0b65cf7f44818e841d24499e897c3aaf637406144f9e6367ddd2a5177"
# doi "10.1186/s13104-016-1900-2"
# tag "bioinformatics"
bottle do
cellar :any
sha256 "df8e67f8518c8bf15ffe93b644b5fd77dfadfd686d7cdc9eb096ca88176cbc2f" => :sierra
sha256 "710e9ecdabfff6400c2059415505a77aea67eb15076ddadf63f76b54e7505a26" => :el_capitan
sha256 "71c311b9d04c31e82a71a4fc4b4b748afd3ddb06881cbef4ad3e5cd3bd19410d" => :yosemite
end
depends_on "bzip2" => :recommended
depends_on "zlib" => :recommended
def install
system "make", "install", "PREFIX=#{prefix}"
end
test do
system "#{bin}/AdapterRemoval", "--bzip2", \
"--file1", "#{pkgshare}/examples/reads_1.fq", \
"--file2", "#{pkgshare}/examples/reads_2.fq", \
"--basename", "#{testpath}/output"
end
end