forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bowtie2.rb
28 lines (22 loc) · 854 Bytes
/
bowtie2.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
require 'formula'
class Bowtie2 < Formula
homepage "http://bowtie-bio.sourceforge.net/bowtie2/index.shtml"
#doi "10.1038/nmeth.1923"
head "https://github.com/BenLangmead/bowtie2.git"
url "https://github.com/BenLangmead/bowtie2/archive/v2.2.3.tar.gz"
sha1 "3186cb730f363935d18907c7222df9e1884a67fa"
def install
system "make"
bin.install %W[bowtie2
bowtie2-align-l bowtie2-align-s
bowtie2-build bowtie2-build-l bowtie2-build-s
bowtie2-inspect bowtie2-inspect-l bowtie2-inspect-s]
doc.install %W[AUTHORS LICENSE MANUAL
NEWS README TUTORIAL VERSION]
share.install %W[example scripts]
end
test do
system "bowtie2-build", "#{share}/example/reference/lambda_virus.fa", "lambda_virus"
assert File.exist?("lambda_virus.1.bt2")
end
end