Skip to content
This repository was archived by the owner on Jan 27, 2020. It is now read-only.

Commit 3825602

Browse files
authored
Merge pull request #561 from MaxUlysse/MinorTweaks
Minor tweaks
2 parents bdcc57c + 0ac5305 commit 3825602

1 file changed

Lines changed: 18 additions & 3 deletions

File tree

scripts/do_all.sh

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,19 @@ set -xeuo pipefail
44
PROFILE=singularity
55
PUSH=''
66
REPOSITORY=maxulysse
7+
GENOME=GRCh38
78
TAG=latest
89
TOOL=docker
910

1011
while [[ $# -gt 0 ]]
1112
do
1213
key=$1
1314
case $key in
15+
--genome)
16+
GENOME=$2
17+
shift # past argument
18+
shift # past value
19+
;;
1420
-p|--profile)
1521
PROFILE=$2
1622
shift # past argument
@@ -40,10 +46,19 @@ do
4046
esac
4147
done
4248

43-
if [ $TOOL = docker ]
49+
if [ $GENOME = smallGRCh37 ]
50+
then
51+
$GENOME = GRCh37
52+
fi
53+
54+
function toLower() {
55+
echo $1 | tr '[:upper:]' '[:lower:]'
56+
}
57+
58+
if [ $TOOL = docker ] && [ GRCh37,GRCh38 =~ $GENOME ]
4459
then
4560
nextflow run buildContainers.nf -profile ${PROFILE} --verbose --docker ${PUSH} --repository ${REPOSITORY} --tag ${TAG} --containers fastqc,freebayes,gatk,igvtools,multiqc,mutect1,picard,qualimap,r-base,runallelecount,sarek,snpeff
46-
nextflow run buildContainers.nf -profile ${PROFILE} --verbose --docker ${PUSH} --repository ${REPOSITORY} --tag ${TAG} --containers snpeffgrch37,snpeffgrch38,vepgrch37,vepgrch38
61+
nextflow run buildContainers.nf -profile ${PROFILE} --verbose --docker ${PUSH} --repository ${REPOSITORY} --tag ${TAG} --containers snpeff$(toLower ${GENOME}),vep$(toLower ${GENOME})
4762
else
48-
nextflow run buildContainers.nf -profile ${PROFILE} --verbose --singularity --repository ${REPOSITORY} --tag ${TAG} --containerPath containers/ --containers fastqc,freebayes,gatk,igvtools,multiqc,mutect1,picard,qualimap,r-base,runallelecount,sarek,snpeffgrch37,snpeffgrch38,vepgrch37,vepgrch38
63+
nextflow run buildContainers.nf -profile ${PROFILE} --verbose --singularity --repository ${REPOSITORY} --tag ${TAG} --containerPath containers/ --containers fastqc,freebayes,gatk,igvtools,multiqc,mutect1,picard,qualimap,r-base,runallelecount,sarek,snpeff$(toLower ${GENOME}),vep$(toLower ${GENOME})
4964
fi

0 commit comments

Comments
 (0)