-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathinstall.sh
More file actions
22 lines (14 loc) · 718 Bytes
/
install.sh
File metadata and controls
22 lines (14 loc) · 718 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
# get the scripts path
SCRIPT=`realpath -s $0`
SCRIPTPATH=`dirname $SCRIPT`
# install third part software and packages:
conda install -y -c bioconda diamond prokka idba cd-hit keras networkx biopython numpy
# download the cog2014 database.
echo "Download COG database"
wget -q -c ftp://ftp.ncbi.nih.gov/pub/COG/COG2014/data/*2014* -P $SCRIPTPATH/database/cog/cog2014
# unzip cog fasta file and format
echo "Unzip cog fasta and format the file by diamond"
gunzip $SCRIPTPATH/database/cog/cog2014/prot2003-2014.fa.gz
diamond makedb --in $SCRIPTPATH/database/cog/cog2014/prot2003-2014.fa -d $SCRIPTPATH/database/cog/cog2014/prot2003-2014.fa
# download the anaconda and install the dependent packages.