Skip to content

Commit

Permalink
Merge pull request nf-core#561 from MaxUlysse/MinorTweaks
Browse files Browse the repository at this point in the history
Minor tweaks
  • Loading branch information
maxulysse authored Apr 10, 2018
2 parents a57b5d4 + 9f59f08 commit 36d2445
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions scripts/do_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,19 @@ 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
Expand Down Expand Up @@ -40,10 +46,19 @@ do
esac
done

if [ $TOOL = docker ]
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 fastqc,freebayes,gatk,igvtools,multiqc,mutect1,picard,qualimap,r-base,runallelecount,sarek,snpeff
nextflow run buildContainers.nf -profile ${PROFILE} --verbose --docker ${PUSH} --repository ${REPOSITORY} --tag ${TAG} --containers snpeffgrch37,snpeffgrch38,vepgrch37,vepgrch38
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 fastqc,freebayes,gatk,igvtools,multiqc,mutect1,picard,qualimap,r-base,runallelecount,sarek,snpeffgrch37,snpeffgrch38,vepgrch37,vepgrch38
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})
fi

0 comments on commit 36d2445

Please sign in to comment.