forked from nf-core/sarek
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdo_all.sh
More file actions
executable file
·64 lines (59 loc) · 1.7 KB
/
do_all.sh
File metadata and controls
executable file
·64 lines (59 loc) · 1.7 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
#!/bin/bash
set -xeuo pipefail
PROFILE=singularity
PUSH=''
REPOSITORY=maxulysse
GENOME=GRCh38
TAG=latest
TOOL=docker
while [[ $# -gt 0 ]]
do
key=$1
case $key in
--genome)
GENOME=$2
shift # past argument
shift # past value
;;
-p|--profile)
PROFILE=$2
shift # past argument
shift # past value
;;
--pull)
TOOL=singularity
shift # past argument
;;
--push)
PUSH=--push
shift # past argument
;;
-r|--repository)
REPOSITORY=$2
shift # past argument
shift # past value
;;
-t|--tag)
TAG=$2
shift # past argument
shift # past value
;;
*) # unknown option
shift # past argument
;;
esac
done
if [[ $GENOME = smallGRCh37 ]]
then
GENOME=GRCh37
fi
function toLower() {
echo $1 | tr '[:upper:]' '[:lower:]'
}
if [[ $TOOL = docker ]] && [[ GRCh37,GRCh38 =~ $GENOME ]]
then
nextflow run buildContainers.nf -profile ${PROFILE} --verbose --docker ${PUSH} --repository ${REPOSITORY} --tag ${TAG} --containers freebayes,gatk,gatk4,igvtools,mutect1,picard,qctools,r-base,runallelecount,sarek,snpeff
nextflow run buildContainers.nf -profile ${PROFILE} --verbose --docker ${PUSH} --repository ${REPOSITORY} --tag ${TAG} --containers snpeff$(toLower ${GENOME}),vep$(toLower ${GENOME})
else
nextflow run buildContainers.nf -profile ${PROFILE} --verbose --singularity --repository ${REPOSITORY} --tag ${TAG} --containerPath containers/ --containers freebayes,gatk,gatk4,igvtools,mutect1,picard,qctools,r-base,runallelecount,sarek,snpeff$(toLower ${GENOME}),vep$(toLower ${GENOME})
fi