-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall_mac_os.sh
59 lines (56 loc) · 1.41 KB
/
install_mac_os.sh
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/bin/bash
echo
echo "Burrows-Wheeler Aligner, SAMTools and VarScan are required for the NGS pipeline of MutaNET. Do you wish to install them on your system? This will also install the package manager Homebrew if it is not installed yet."
echo
read -p "Type y for yes or n for no." -n 1
echo
echo
if [[ $REPLY =~ ^[Yy]$ ]]
then
which -s brew
if [[ $? != 0 ]] ; then
# Install Homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
echo
else
brew update
echo
fi
brew cask install java
echo
brew install bwa
echo
brew install samtools
echo
brew install brewsci/bio/varscan
echo
fi
echo
echo "Python 3 is required if you want to run MutaNET from source code. It is NOT required when using the executable. Do you wish to install Python 3 and the required Python 3 packages (numpy, matplotlib, scipy, fpdf, pyyaml) on your system? This will also install the package manager Homebrew if it is not installed yet."
echo
echo
read -p "Type y for yes or n for no." -n 1
echo
echo
if [[ $REPLY =~ ^[Yy]$ ]]
then
which -s brew
if [[ $? != 0 ]] ; then
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
echo
else
brew update
echo
fi
brew install python3
echo
pip3 install numpy --user
echo
pip3 install matplotlib --user
echo
pip3 install scipy --user
echo
pip3 install fpdf --user
echo
pip3 install pyyaml --user
fi