-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathinstall_packages
executable file
·48 lines (37 loc) · 1.02 KB
/
install_packages
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
#!/bin/bash
pip install -r ./code/setup_pythonLibrary.txt
# Function to install MAFFT for Debian-based Linux
install_mafft_debian() {
sudo apt-get update
sudo apt-get install -y mafft
}
# Function to install MAFFT for Red Hat-based Linux
install_mafft_redhat() {
sudo yum install -y mafft
}
# Function to install MAFFT for macOS
install_mafft_mac() {
brew install mafft
brew link --overwrite mafft
}
# Detect the operating system
OS="$(uname -s)"
case "${OS}" in
Linux*)
# Assuming a Debian-based or Red Hat-based Linux distribution
if [ -f /etc/debian_version ]; then
install_mafft_debian
elif [ -f /etc/redhat-release ]; then
install_mafft_redhat
else
echo "Unsupported Linux distribution"
fi
;;
Darwin*)
# macOS
install_mafft_mac
;;
*)
echo "Unsupported or unknown operating system: ${OS} - Predictions for new MHC allele sequences will not work."
;;
esac