-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_mac.sh
More file actions
executable file
·87 lines (63 loc) · 1.65 KB
/
Copy pathsetup_mac.sh
File metadata and controls
executable file
·87 lines (63 loc) · 1.65 KB
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#!/bin/bash
#install homebrew
URL_BREW='https://raw.githubusercontent.com/Homebrew/install/master/install'
echo -n '- Installing brew ... '
echo | /usr/bin/ruby -e "$(curl -fsSL $URL_BREW)" > /dev/null
if [ $? -eq 0 ]; then echo 'OK'; else echo 'NG'; fi
#update java
brew cask install java
#install bwa
brew install bwa
sudo easy_install pip
pip install futures
#install CLARK
pip install --user futures
curl -O http://clark.cs.ucr.edu/Download/CLARKV1.2.5.tar.gz
tar -xzvf CLARKV1.2.5.tar.gz
cd CLARKSCV*
./install.sh
mkdir DIR_DB
cd DIR_DB
cp ../../resources/xa* .
cat xa* > C-VRDB.tar.gz
tar -xzvf C-VRDB.tar.gz
cd ../
./set_targets.sh DIR_DB bacteria fungi human custom
./updateTaxonomy.sh
gunzip ../example/sample1_meta_R*
./classify_metagenome.sh --light -O ../example/setup/1_S1_L001_R1_001.fastq -R ../example/setup/sample1_meta_R1
rm -r DIR_DB/Bacteria/
rm -r DIR_DB/Custom/
rm -r DIR_DB/Fungi/
rm -r DIR_DB/Human/
cd DIR_DB/taxonomy
shopt -s extglob
rm -- !(nodes.dmp)
cd ../../..
#install krona tools
curl -O https://github.com/marbl/Krona/releases/download/v2.7/KronaTools-2.7.tar
tar -vxf KronaTools-2.7.tar
cd KronaTools-2.7/
sudo ./install.pl
./updateTaxonomy.sh
cd ..
#download human genome
mkdir host
cd host
curl -O ftp://hgdownload.cse.ucsc.edu/goldenPath/hg19/chromosomes/*
cat *.gz > human.fasta.gz
rm !(human.fasta.gz)
bwa index human.fasta.gz
cd ..
#install nextflow
curl -s https://get.nextflow.io | bash
sudo mv nextflow /usr/local/bin/
# install fastqc
brew update
brew install fastqc
pip install --upgrade pip
hash -d pip
pip install --user multiqc
#install seqtk
brew install seqtk
echo "Installation finish $(date)"