-
Notifications
You must be signed in to change notification settings - Fork 2
/
getHisat2.bash
43 lines (33 loc) · 1.33 KB
/
getHisat2.bash
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
42
43
(set -o igncr) 2>/dev/null && set -o igncr; # For Cygwin on Windows compaibility
if [[ "$OSTYPE" == "linux-gnu" ]]; then
wget "http://ccb.jhu.edu/software/hisat2/dl/hisat2-2.1.0-Linux_x86_64.zip"
unzip hisat2-2.1.0-Linux_x86_64.zip
cp hisat2-2.1.0/hisat2 forDist
cp hisat2-2.1.0//hisat2-build forDist
cp hisat2-2.1.0/hisat2-build-s forDist
cp hisat2-2.1.0/hisat2-build-l forDist
cp hisat2-2.1.0/hisat2-align-s forDist
cp hisat2-2.1.0/hisat2-align-l forDist
cp hisat2-2.1.0/hisat2-inspect forDist
cp hisat2-2.1.0/hisat2-inspect-s forDist
cp hisat2-2.1.0/hisat2-inspect-l forDist
rm hisat2-2.1.0-Linux_x86_64.zip
rm -rf hisat2-2.1.0
fi
if [[ "$OSTYPE" == "cygwin" ]]; then
wget "http://ccb.jhu.edu/software/hisat2/dl/hisat2-2.1.0-Linux_x86_64.zip"
wget "http://www.di.fc.ul.pt/~afalcao/hisat2.1/hisat2.1_Windows.zip"
jar xf hisat2.1_Windows.zip
jar xf hisat2-2.1.0-Linux_x86_64.zip
cp hisat2.1/hisat2 forDist
cp hisat2-2.1.0//hisat2-build forDist
cp hisat2.1/hisat2-build-s.exe forDist
cp hisat2.1/hisat2-build-l.exe forDist
cp hisat2.1/hisat2-align-s.exe forDist
cp hisat2.1/hisat2-align-l.exe forDist
cp hisat2.1/hisat2-inspect-s.exe forDist
cp hisat2.1/hisat2-inspect-l.exe forDist
rm *zip
rm -rf hisat2-2.1.0
rm -rf hisat2.1
fi