-
Notifications
You must be signed in to change notification settings - Fork 0
/
conda.sh
251 lines (210 loc) · 4.51 KB
/
conda.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
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
## Install all required software
echo "Installing necessary software"
echo "*********************"
echo ""
echo "testing if Conda and Mamba are installed..."
command -v conda >/dev/null 2>&1 || {
echo >&2 "The installation pipeline requires Anaconda/Miniconda but it is not installed. Please check here: https://anaconda.org/ for more details. Aborting."
exit 1
}
command -v mamba >/dev/null 2>&1 || {
echo >&2 "The installation pipeline requires Mamba but it is not installed. Please check here: https://github.com/conda-forge/miniforge#mambaforge for more details. Aborting."
exit 2
}
printf "...successfully done!\n"
echo "*********************"
echo ""
echo "Have a cup of coffee, this may take a while... "
echo '''
( (
) )
........
| |]
\ /
`----´ '''
sleep 2
## change to home directory of AutDeNovo
BASEDIR=$(dirname $0)
cd ${BASEDIR}
mkdir envs
ConPath=$(whereis conda)
tmp=${ConPath#* }
Conda=${tmp%%/bin/co*}
## install FASTQC
mamba create \
-p ${BASEDIR}/envs/fastqc \
-y \
-c bioconda \
-c conda-forge \
fastqc=0.11.9
## install BLAST+
mamba create \
-p ${BASEDIR}/envs/blast \
-y \
-c bioconda \
-c conda-forge \
blast=2.14.1
## install blobtools
mamba create \
-p ${BASEDIR}/envs/blobtools \
-y \
python=3.9
eval "$(conda shell.bash hook)"
conda activate \
${BASEDIR}/envs/blobtools
mamba install \
-y \
tqdm==4.64.1
${BASEDIR}/envs/blobtools/bin/pip install \
blobtoolkit[full]==4.2.1
conda deactivate
## install BUSCO
mamba create \
-p ${BASEDIR}/envs/busco \
-y \
-c conda-forge \
-c bioconda \
busco=5.4.3
## install SPAdes
mamba create \
-p ${BASEDIR}/envs/spades \
-y \
-c conda-forge \
-c bioconda \
spades=3.15.5
## install Flye
mamba create \
-p ${BASEDIR}/envs/flye \
-y \
-c conda-forge \
-c bioconda \
flye=2.9.2
## install Minimap
mamba create \
-p ${BASEDIR}/envs/minimap \
-y \
-c conda-forge \
-c bioconda \
minimap2=2.26
eval "$(conda shell.bash hook)"
conda activate \
${BASEDIR}/envs/minimap
mamba install \
-y \
-c conda-forge \
-c bioconda \
samtools=1.17
## install BWA
mamba create \
-p ${BASEDIR}/envs/bwa \
-y \
-c conda-forge \
-c bioconda \
bwa=0.7.17
eval "$(conda shell.bash hook)"
conda activate \
${BASEDIR}/envs/bwa
mamba install \
-y \
-c conda-forge \
-c bioconda \
samtools=1.17
conda deactivate
## install Jellyfish
mamba create \
-p ${BASEDIR}/envs/jellyfish \
-y \
-c conda-forge \
-c bioconda \
kmer-jellyfish=2.3.0
## install GenomeScope
mamba create \
-p ${BASEDIR}/envs/genomescope \
-y \
-c conda-forge \
-c bioconda \
genomescope2=2.0
## install Kraken
mamba create \
-p ${BASEDIR}/envs/kraken \
-y \
-c conda-forge \
-c bioconda \
kraken2=2.1.3
## install Nanoplot
mamba create \
-p ${BASEDIR}/envs/nanoplot \
-y \
-c conda-forge \
-c bioconda \
nanoplot=1.41.6
## install Quast
mamba create \
-p ${BASEDIR}/envs/quast \
-y \
-c conda-forge \
-c bioconda \
quast=5.2.0
## install Racon
mamba create \
-p ${BASEDIR}/envs/racon \
-y \
-c conda-forge \
-c bioconda \
racon=1.5.0
## install Sequeltools
mamba create \
-p ${BASEDIR}/envs/sequeltools \
-y \
python
cd ${BASEDIR}/envs/sequeltools
git clone https://github.com/ISUgenomics/SequelTools.git
cd SequelTools/Scripts
chmod +x *.sh *.py *.R
mv * ../../bin
rm -rf ${BASEDIR}/envs/sequeltools/SequelTools
## install Atria
mamba create \
-p ${BASEDIR}/envs/atria \
-y \
-c conda-forge \
-c bioconda \
pigz pbzip2 julia
eval "$(conda shell.bash hook)"
conda activate \
${BASEDIR}/envs/atria
cd ${BASEDIR}
wget https://github.com/cihga39871/Atria/releases/download/v3.1.2/atria-3.1.2-linux.tar.gz
tar -zxvf atria-3.1.2-linux.tar.gz -C .
mv atria-3.1.2/bin/* envs/atria/bin
mv atria-3.1.2/lib/* envs/atria/lib
rm -rf atria-3.1.2*
conda deactivate
## install Fastp
mamba create \
-p ${BASEDIR}/envs/fastp \
-y \
-c conda-forge \
-c bioconda \
fastp=0.23.4
## install trimgalore
mamba create \
-p ${BASEDIR}/envs/trimgalore \
-y \
-c conda-forge \
-c bioconda \
trim-galore=0.6.2
## install pandoc
mamba create \
-p ${BASEDIR}/envs/pandoc \
-y \
-c conda-forge \
-c bioconda \
pandoc
## install pigz
mamba create \
-p ${BASEDIR}/envs/pigz \
-y \
-c conda-forge \
-c bioconda \
pigz