-
Notifications
You must be signed in to change notification settings - Fork 4
/
plaScope.sh
executable file
·515 lines (388 loc) · 14.6 KB
/
plaScope.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
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
#!/usr/bin/env bash
# Copyright 2018, Guilhem Royer <[email protected]>
#
# This file is part of PlaScope.
#
# PlaScope is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# PlaScope is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with PlaScope. If not, see <http://www.gnu.org/licenses/>.
##############################################################
# Author Guilhem ROYER [email protected] | 06/04/2018 #
##############################################################
VERSION=1.3.1
set -e
set -u
set -o pipefail
#############
# Help #
#############
version()
{
cat << EOF
$VERSION
EOF
}
usage()
{
cat << EOF
usage: plaScope.sh [OPTIONS] [ARGUMENTS]
General options:
-h, --help display this message and exit
-v, --version display version number and exit
-n, --no-banner don't print beautiful banners
-t number of threads[OPTIONAL] [default : 8]
-o output directory [OPTIONAL] [default : current directory]
--sample Sample name [MANDATORY]
--db_dir path to centrifuge database [MANDATORY]
--db_name centrifuge database name [MANDATORY]
Mode 1: SPAdes assembly + contig classification
-1 forward paired-end reads [MANDATORY]
-2 reverse paired-end reads [MANDATORY]
Mode 2: contig classification of a fasta file (only if you already have your SPAdes or Unicycler assembly!)
--fasta SPAdes or Unicycler assembly fasta file [MANDATORY]
-a Specify the assembler used: spades or unicycler. Default=spades.
Example mode 1:
plaScope.sh -1 my_reads_1.fastq.gz -2 my_reads_2.fastq.gz -o output_directory --db_dir path/to/DB --db_name chromosome_plasmid_db --sample name_of_my_sample
Example mode 2:
plaScope.sh --fasta my_fastafile.fasta -o output_directory --db_dir path/to/DB --db_name chromosome_plasmid_db --sample name_of_my_sample -a unicycler
Github:
https://github.com/GuilhemRoyer/PlaScope
EOF
}
################################
# Just a little bit of art #
################################
plascope()
{
if [[ ${NO_BANNER} -eq 1 ]]
then
return
fi
cat << "EOF"
# MNXXXXXXXXXXXXNWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWXXXXXXXXXXXXXXXXNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
No'''''''''''''cOWMMWKOOOXWMMMMMMMMMMMMMMWKO0OO0000O0XMMMMNk;''''''''''''',:dXMWX00000000OO0O0NMMMN0O000000OOKNMMWX0000000000OKWMMMN0O000000000000O0NM
N: .:0W0, cNMMMMMMMMMMMMWO:. 'dXM0; ,xKNWKl. .,xNMNx,. .;kNNc .:0WMO' .'dXM
N: .:lllll; ,00' :NMMMMMMMMMMMWd. ;0d ,llllllllokNMMMO' 'dXMMX: oX: .lXk. .lKWMM
N: ,KMWWKl. .c0W0' :NMMMMMMMMMMMN: .okkkkkk; .kd .xMMMMMMMMMMMMMMd. :kkkkkkOXMMMM0' ,xkkkkkd. ;K: .okd; ,kNk. ;kkkkkkkKWMMMM
N: ,KWKl. .c0WMM0' :NMMMMMMMMMMMN: 'OOxxxxx; .kd cOkkkkkkOkOXMMMd. .xMMMMMMMMMMMM0' cWMMMMMX; ;K: ,Ox, ,xNMMk. ;xxxxxxONMMMMM
N: 'ko. .c0WMMMM0' :NMMMMMMMMMMMN: .:. .kO. 'dOXd .xMMMMMMMMMMMM0' cWMMMMMX; ;K: .:. ,xNMMMMk. .OMMMMM
N: .:. .:OWMMMMMM0' :NMMMMMMMMMMMN: 'kOxxxxx; .kWKl. :l. .xMMMMMMMMMMMM0' cWMMMMMX; ;K: ,kd,,xNMMMMMMk. ,xxxxxxONMMMMM
N: ,0O:cOWMMMMMMMM0' ,k0O0000OO0OKN: '0MMMMMMo .kMMWXOOOOOOOOOk, ':. c0OO000000O0X0' ,k0O0OOx' ;K: ,KWNNMMMMMMMMk. :O000000O00OXM
N: ,KMWWMMMMMMMM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Kk; ...'dNWMMMMMMMMM
MMMWl .OMNXNMK, :XMMO' lXx. .dWMMMMK, ;0O, ,0NMMMMNl. .d000KNNWMMMMMMMMMMMMMMMMMMMMMO' .d000KXXXNWMMMMMM
MMMWl 'OMMMMMK, :NMMNKo. ... .dKNMMMMMW0k: ..,od' ..lXMMMWXO; .'',xWMMMMMMMMMMMMMMMMMMMMMMMk. .''''''..cKMMMMM
MMMMKkkkONMMMMMW0kkkKWMMMMNOkkkkk0NMMMMMMMMMMXkkkOXW0kkk0WMMMMMWKkkkkkkKMMMMMMMMMMMMMMMMMMMMMMMMNOkkkkkkkkkkkkkkONMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
EOF
}
#print on stderr
echoerr() { printf "Error: %s\n" "$*" >&2; }
#testfile
testfile()
{
if [[ ! -f "$1" ]]
then
echoerr "File $1 not found."
exit 1
fi
if [[ ! -s "$1" ]]
then
echoerr "File $1 empty."
exit 1
fi
}
########################
### Contig sorting ##
########################
contig_sorting_unicycler()
{
local plascopeextendres="$1"
local contigcov=${CONTIGCOV}
local contiglength=${CONTIGLENGTH}
local hitlength=${HITLENGTH}
awk -F'\t' -v contigcov=${contigcov} -v contiglength=${contiglength} -v hitlength=${hitlength} '
BEGIN {
TPLASCOPERES[0]="unclassified"
TPLASCOPERES[1]="unclassified"
TPLASCOPERES[2]="chromosome"
TPLASCOPERES[3]="plasmid"
OFS="\t"
#skip first line
getline
}
{clab=$1; split(clab,T,":") ; ccov=T[5];
if ( $7>=contiglength && $6>=hitlength && ccov>contigcov ) print $1,TPLASCOPERES[$3]
else print $1,TPLASCOPERES[0]
}' $plascopeextendres
}
contig_sorting_spades()
{
local plascopeextendres="$1"
local contigcov=${CONTIGCOV}
local contiglength=${CONTIGLENGTH}
local hitlength=${HITLENGTH}
awk -F'\t' -v contigcov=${contigcov} -v contiglength=${contiglength} -v hitlength=${hitlength} '
BEGIN {
TPLASCOPERES[0]="unclassified"
TPLASCOPERES[1]="unclassified"
TPLASCOPERES[2]="chromosome"
TPLASCOPERES[3]="plasmid"
OFS="\t"
#skip first line
getline
}
{clab=$1; split(clab,T,"_") ; ccov=T[6];
if ( $7>=contiglength && $6>=hitlength && ccov>contigcov ) print $1,TPLASCOPERES[$3]
else print $1,TPLASCOPERES[0]
}' $plascopeextendres
}
#########################################
###### Awk fasta extraction #######
#########################################
contig_extraction()
{
local contigfile="$1"
local contigsortingfile="$2"
local contigfileprefix="$3"
awk -F'\t' -v contigfileprefix=${contigfileprefix} '
NR==FNR{Tcontig[">"$1]=$2;next}
/^>/ {
if ($1 in Tcontig) output=contigfileprefix"_"Tcontig[$1]".fasta"
else
{
print "Warning:", $1, "not classified." > "/dev/stderr"
output=""
}
}
output { print > output }' $contigsortingfile $contigfile
}
####################################
#### Get argument with getopts #####
####################################
#Establish default value for assembler
assembler='spades'
while getopts ":1:2:o:t:-:h:v:n:a:" optchar; do
case "${optchar}" in
-)
case "${OPTARG}" in
help)
usage
exit
;;
version)
version
exit;;
no-banner)
NO_BANNER=1
;;
db_dir)
CENTRI_DIR="${!OPTIND}"; OPTIND=$(( $OPTIND + 1 ))
;;
db_name)
DB_NAME="${!OPTIND}"; OPTIND=$(( $OPTIND + 1 ))
;;
fasta)
FASTA="${!OPTIND}"; OPTIND=$(( $OPTIND + 1 ))
;;
sample)
PREFIX="${!OPTIND}"; OPTIND=$(( $OPTIND + 1 ))
;;
esac;;
h)
usage
exit
;;
v)
version
exit
;;
n)
NO_BANNER=1
;;
1)
READ1=${OPTARG}
;;
2)
READ2=${OPTARG}
;;
t)
THREADS=${OPTARG}
;;
o)
O_DIR=${OPTARG}
;;
a)
assembler=${OPTARG}
;;
?)
usage
exit 1
;;
esac
done
#MODE 1 or 2
MODE=""
#Check that mandatory options are not empty
if [[ -z "${CENTRI_DIR:-}" ]] || [[ -z "${DB_NAME:-}" ]] || [[ -z "${PREFIX:-}" ]]
then
usage
exit 1
fi
if [[ ( -z "${FASTA:-}" ) && ( ( -z "${READ1:-}" ) || ( -z "${READ2:-}" ) ) ]]
then
usage
exit 1
fi
#Check that "mode 1" and "mode 2" are not used at the same time
if [[ "${FASTA:-}" && ( "${READ1:-}" || "${READ2:-}" ) ]]
then
echoerr "Mode 1 and mode 2 can't be run at the same time. Please provide fastq files (mode 1) OR a fasta file (mode 2)"
usage
exit 1
fi
if [[ "${FASTA:-}" ]]
then
MODE=2
testfile "${FASTA}"
elif [[ "${READ1:-}" && "${READ2:-}" ]]
then
MODE=1
testfile "${READ1}"
testfile "${READ2}"
else
usage
exit 1
fi
# default value: use banner
NO_BANNER=${NO_BANNER-0}
# Set default values of optional parameters
if [[ -z "${THREADS:-}" ]]
then
# default value: 8
THREADS=8
fi
if [[ -z "${O_DIR:-}" ]]
then
# default value: current directory
O_DIR="."
fi
#Remove trailing slash of paths if exist
DB_DIR=${CENTRI_DIR%/}
OUTPUT=${O_DIR%/}
#Check if directories already exist
if [[ -d "${OUTPUT}/${PREFIX}_PlaScope/PlaScope_predictions" ]]
then
echoerr "${OUTPUT}/${PREFIX}_PlaScope/PlaScope_predictions already exists"
exit 1
else
mkdir -p ${OUTPUT}/${PREFIX}_PlaScope/PlaScope_predictions
fi
if [[ -d "${OUTPUT}/${PREFIX}_PlaScope/Centrifuge_results" ]]
then
echoerr "${OUTPUT}/${PREFIX}_PlaScope/Centrifuge_results already exists"
exit 1
else
mkdir -p ${OUTPUT}/${PREFIX}_PlaScope/Centrifuge_results
fi
################################################################
######################## Run functions ########################
################################################################
#plascope variables for contig evaluation
if [[ $assembler = 'unicycler' ]]
then
readonly CONTIGCOV=0
elif [[ $assembler = 'spades' ]]
then
readonly CONTIGCOV=2
else echo "provide valid assembler name: spades or unicycler" && exit 0
fi
readonly CONTIGLENGTH=500
readonly HITLENGTH=100
step=1
plascope
if [[ "${MODE}" == 1 ]]
then
mode_1
echo "Step $step: Running assembly with SPAdes"
# SPAdes automatically stores its log in ${OUTPUT}/${PREFIX}_PlaScope/SPAdes/spades.log so we redirect output to /dev/nulll
echo SPAdes log can be found here: ${OUTPUT}/${PREFIX}_PlaScope/SPAdes/spades.log
spades.py --careful -t ${THREADS} -1 ${READ1} -2 ${READ2} -o ${OUTPUT}/${PREFIX}_PlaScope/SPAdes &> /dev/null
FASTA="${OUTPUT}/${PREFIX}_PlaScope/SPAdes/contigs.fasta"
(( step++ ))
else
mode_2
fi
echo "Step $step: Contigs classification with Centrifuge and custom database"
export CENTRIFUGE_INDEXES=${DB_DIR}
# We don't need centrifuge output but we still redirect stdout and stderr to a file
CENTRIFUGE_LOG=${OUTPUT}/${PREFIX}_PlaScope/Centrifuge_results/centrifuge.log
echo Centrifuge log can be found here: ${CENTRIFUGE_LOG}
centrifuge -f --threads ${THREADS} -x ${DB_NAME} -U ${FASTA} -k 1 --report-file ${OUTPUT}/${PREFIX}_PlaScope/Centrifuge_results/${PREFIX}_summary -S ${OUTPUT}/${PREFIX}_PlaScope/Centrifuge_results/${PREFIX}_extendedresult &> ${CENTRIFUGE_LOG}
(( step++ ))
echo "Step $step: Extraction of plasmid, chromosome and unclassified predictions"
if [[ "$assembler" = 'unicycler' ]]; then
contig_sorting_unicycler ${OUTPUT}/${PREFIX}_PlaScope/Centrifuge_results/${PREFIX}_extendedresult > ${OUTPUT}/${PREFIX}_PlaScope/Centrifuge_results/${PREFIX}_list
elif [[ "$assembler" = 'spades' ]]; then
contig_sorting_spades ${OUTPUT}/${PREFIX}_PlaScope/Centrifuge_results/${PREFIX}_extendedresult > ${OUTPUT}/${PREFIX}_PlaScope/Centrifuge_results/${PREFIX}_list
else
echo "Please provide a valid assembler: spades or unicycler" && exit 0
fi
contig_extraction ${FASTA} ${OUTPUT}/${PREFIX}_PlaScope/Centrifuge_results/${PREFIX}_list ${OUTPUT}/${PREFIX}_PlaScope/PlaScope_predictions/${PREFIX}
echo "If you use PlaScope please cite: ..."
exit 0