forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
novoalign.rb
35 lines (31 loc) · 1.27 KB
/
novoalign.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
class Novoalign < Formula
desc "Map short reads to a reference genome"
homepage "http://www.novocraft.com/"
# tag "bioinformatics"
version "3.02.13"
url "http://www.novocraft.com/homebrew/novocraftV#{version}.#{OS.mac? ? "MacOSX" : "Linux2.6"}.tar.gz"
sha256(
if OS.mac? then "cb51ac1f7ffa96b528fea18c4b9f9b16a7ebd195efddd20caa54a251e2c19e76"
elsif OS.linux? then "e2cce841c44638ac93704c6f51c5390cf116d7aca7a77cc4551cb2aeceebf47d"
else raise "Unknown operating system"
end)
bottle do
cellar :any
sha256 "e900cd36677ec495d0c6fa3a84e0700bd35680c509b28e2528b18fe40a0aa00b" => :yosemite
sha256 "c4fd0e6b46ea57ec09014ea58f967229947dda33559bafdc93166ca4f797f30c" => :mavericks
sha256 "0cdd8d02f923178f69f96296a768bc40e7772a796bd4c2ab0da2812ba3b21385" => :mountain_lion
sha256 "09ef31b4cd151b746de9e9ebd4912d6f6f605913841a1d3fd2c9754e398538ec" => :x86_64_linux
end
def install
bin.install %w[
isnovoindex novo2paf novoalign novoalignCS
novoalignCSMPI novoalignMPI novobarcode novoindex novomethyl
novope2bed.pl novorun.pl novosort novoutil]
# Conflicts with samtools
# bin.install "novo2sam.pl"
doc.install Dir["*.pdf", "*.txt"]
end
test do
system "#{bin}/novoalign --version 2>&1 |grep -q Novoalign"
end
end