diff --git a/.gitattributes b/.gitattributes index e00a13e8c8..7fe55006f8 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1 @@ -*.nf linguist-language=Groovy \ No newline at end of file +*.config linguist-language=nextflow diff --git a/.travis.yml b/.travis.yml index 08ad72172b..eecac3f7ec 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,8 @@ language: java jdk: openjdk8 +node_js: "node" + services: - docker @@ -25,9 +27,10 @@ env: install: # Install Nextflow (and Singularity if needed) - "./scripts/install.sh --tool $TOOL_INSTALL" - "travis_retry ./scripts/containers.sh --profile $PROFILE --test $TEST" + - "npm install -g gnomon" before_script: # Build references when needed - - "./scripts/test.sh --profile $PROFILE --test $TEST --build" + - "./scripts/test.sh --profile $PROFILE --test $TEST --build | gnomon --medium 120.0 --high 600.0 --real-time=false" script: - - "./scripts/test.sh --profile $PROFILE --test $TEST" + - "./scripts/test.sh --profile $PROFILE --test $TEST | gnomon --medium 120.0 --high 600.0 --real-time=false" diff --git a/annotate.nf b/annotate.nf index 1d7f8bab8d..1230730429 100644 --- a/annotate.nf +++ b/annotate.nf @@ -1,8 +1,6 @@ #!/usr/bin/env nextflow /* -vim: syntax=groovy --*- mode: groovy;-*- kate: syntax groovy; space-indent on; indent-width 2; ================================================================================ = S A R E K = @@ -301,9 +299,9 @@ def minimalInformationMessage() { if (tools) log.info "Tools : " + tools.join(', ') if (annotateTools) log.info "Annotate on : " + annotateTools.join(', ') if (annotateVCF) log.info "VCF files : " +annotateVCF.join(',\n ') - log.info "Containers :" - if (params.repository) log.info " Repository : ${params.repository}" - else log.info " ContainerPath: " + params.containerPath + log.info "Containers" + if (params.repository != "") log.info " Repository : " + params.repository + if (params.containerPath != "") log.info " ContainerPath: " + params.containerPath log.info " Tag : " + params.tag log.info "Reference files used:" log.info " snpeffDb :\n\t" + params.genomes[params.genome].snpeffDb diff --git a/buildContainers.nf b/buildContainers.nf index eb4921b7dd..5595b5fa3e 100644 --- a/buildContainers.nf +++ b/buildContainers.nf @@ -1,8 +1,6 @@ #!/usr/bin/env nextflow /* -vim: syntax=groovy --*- mode: groovy;-*- kate: syntax groovy; space-indent on; indent-width 2; ================================================================================ = S A R E K = @@ -234,9 +232,9 @@ def minimalInformationMessage() { log.info "Project Dir : " + workflow.projectDir log.info "Launch Dir : " + workflow.launchDir log.info "Work Dir : " + workflow.workDir - log.info "Containers :" - if (params.repository) log.info " Repository : ${params.repository}" - else log.info " ContainerPath: " + params.containerPath + log.info "Containers" + if (params.repository != "") log.info " Repository : " + params.repository + if (params.containerPath != "") log.info " ContainerPath: " + params.containerPath log.info " Tag : " + params.tag } diff --git a/buildReferences.nf b/buildReferences.nf index 70a220c466..78fde9003b 100644 --- a/buildReferences.nf +++ b/buildReferences.nf @@ -1,8 +1,6 @@ #!/usr/bin/env nextflow /* -vim: syntax=groovy --*- mode: groovy;-*- kate: syntax groovy; space-indent on; indent-width 2; ================================================================================ = S A R E K = @@ -321,8 +319,8 @@ def minimalInformationMessage() { log.info "Out Dir : " + params.outDir log.info "Genome : " + params.genome log.info "Containers" - if (params.repository) log.info " Repository :" + params.repository - else log.info " ContainerPath: " + params.containerPath + if (params.repository != "") log.info " Repository : " + params.repository + if (params.containerPath != "") log.info " ContainerPath: " + params.containerPath log.info " Tag : " + params.tag } diff --git a/configuration/aws-batch.config b/configuration/aws-batch.config index d6c0d21de0..4c4c837610 100644 --- a/configuration/aws-batch.config +++ b/configuration/aws-batch.config @@ -1,6 +1,4 @@ /* -vim: syntax=groovy --*- mode: groovy;-*- * ------------------------------------------------- * Nextflow config file for Sarek * ------------------------------------------------- diff --git a/configuration/base.config b/configuration/base.config index 46fda903f1..695f3c91da 100644 --- a/configuration/base.config +++ b/configuration/base.config @@ -1,6 +1,4 @@ /* -vim: syntax=groovy --*- mode: groovy;-*- * ------------------------------------------------- * Nextflow config file for Sarek * ------------------------------------------------- @@ -15,8 +13,8 @@ params { // set up default params annotateTools = '' // Tools to annotate by annotate.nf annotateVCF = '' // Files to annotate by annotate.nf - containerPath = '.' // Path to Singularity images - containers = '.' // List of containers to build in buildContainers.nf + containerPath = '' // Path to Singularity images + containers = '' // List of containers to build in buildContainers.nf docker = false // Don't use Docker to build buildContainers.nf download = false // Don't download reference files in buildReferences.nf explicitBqsrNeeded = true // Enable recalibration in main.nf diff --git a/configuration/containers.config b/configuration/containers.config index 76e0d930d4..fe67793c64 100644 --- a/configuration/containers.config +++ b/configuration/containers.config @@ -1,6 +1,4 @@ /* -vim: syntax=groovy --*- mode: groovy;-*- * ------------------------------------------------- * Nextflow config file for Sarek * ------------------------------------------------- diff --git a/configuration/docker.config b/configuration/docker.config index 98a8b79578..1dd69206ff 100644 --- a/configuration/docker.config +++ b/configuration/docker.config @@ -1,6 +1,4 @@ /* -vim: syntax=groovy --*- mode: groovy;-*- * ------------------------------------------------- * Nextflow config file for Sarek * ------------------------------------------------- diff --git a/configuration/genomes.config b/configuration/genomes.config index 9a0a804096..56097e23fe 100644 --- a/configuration/genomes.config +++ b/configuration/genomes.config @@ -1,6 +1,4 @@ /* -vim: syntax=groovy --*- mode: groovy;-*- * ------------------------------------------------- * Nextflow config file for Sarek * ------------------------------------------------- diff --git a/configuration/singularity-path.config b/configuration/singularity-path.config index b705d0af46..0edba851ad 100644 --- a/configuration/singularity-path.config +++ b/configuration/singularity-path.config @@ -1,6 +1,4 @@ /* -vim: syntax=groovy --*- mode: groovy;-*- * ------------------------------------------------- * Nextflow config file for Sarek * ------------------------------------------------- diff --git a/configuration/singularity.config b/configuration/singularity.config index 58919722ac..5ddc9e4dba 100644 --- a/configuration/singularity.config +++ b/configuration/singularity.config @@ -1,6 +1,4 @@ /* -vim: syntax=groovy --*- mode: groovy;-*- * ------------------------------------------------- * Nextflow config file for Sarek * ------------------------------------------------- diff --git a/configuration/travis.config b/configuration/travis.config index dded8464e1..3bf97ca817 100644 --- a/configuration/travis.config +++ b/configuration/travis.config @@ -1,6 +1,4 @@ /* -vim: syntax=groovy --*- mode: groovy;-*- * ------------------------------------------------- * Nextflow config file for Sarek * ------------------------------------------------- diff --git a/configuration/uppmax-localhost.config b/configuration/uppmax-localhost.config index e69deaad02..1f4cd5bb56 100644 --- a/configuration/uppmax-localhost.config +++ b/configuration/uppmax-localhost.config @@ -1,6 +1,4 @@ /* -vim: syntax=groovy --*- mode: groovy;-*- * ------------------------------------------------- * Nextflow config file for Sarek * ------------------------------------------------- diff --git a/configuration/uppmax-slurm.config b/configuration/uppmax-slurm.config index d80d400abe..de1639964f 100644 --- a/configuration/uppmax-slurm.config +++ b/configuration/uppmax-slurm.config @@ -1,6 +1,4 @@ /* -vim: syntax=groovy --*- mode: groovy;-*- * ------------------------------------------------- * Nextflow config file for Sarek * ------------------------------------------------- diff --git a/germlineVC.nf b/germlineVC.nf index 55ffdb1874..1dd668c5d3 100644 --- a/germlineVC.nf +++ b/germlineVC.nf @@ -1,8 +1,6 @@ #!/usr/bin/env nextflow /* -vim: syntax=groovy --*- mode: groovy;-*- kate: syntax groovy; space-indent on; indent-width 2; ================================================================================ = S A R E K = @@ -155,7 +153,7 @@ process RunBamQC { set idPatient, status, idSample, file(bam), file(bai) from bamForBamQC output: - file("${idSample}") into bamQCreport + file(idSample) into bamQCreport when: !params.noReports && !params.noBAMQC @@ -772,14 +770,13 @@ def minimalInformationMessage() { log.info "Launch Dir : " + workflow.launchDir log.info "Work Dir : " + workflow.workDir log.info "Out Dir : " + params.outDir - log.info "TSV file : ${tsvFile}" + log.info "TSV file : " + tsvFile log.info "Genome : " + params.genome log.info "Genome_base : " + params.genome_base log.info "Tools : " + tools.join(', ') - log.info "Containers :" - if (params.repository) log.info " Repository : ${params.repository}" - else log.info " ContainerPath: " + params.containerPath - log.info " Tag : " + params.tag + log.info "Containers" + if (params.repository != "") log.info " Repository : " + params.repository + if (params.containerPath != "") log.info " ContainerPath: " + params.containerPath log.info "Reference files used:" log.info " dbsnp :\n\t" + referenceMap.dbsnp log.info "\t" + referenceMap.dbsnpIndex diff --git a/main.nf b/main.nf index 75483005b6..eb7d5e5cf7 100644 --- a/main.nf +++ b/main.nf @@ -1,8 +1,6 @@ #!/usr/bin/env nextflow /* -vim: syntax=groovy --*- mode: groovy;-*- kate: syntax groovy; space-indent on; indent-width 2; ================================================================================ = S A R E K = @@ -277,7 +275,7 @@ markDuplicatesTSV.map { idPatient, status, idSample, bam, bai -> gender = patientGenders[idPatient] "${idPatient}\t${gender}\t${status}\t${idSample}\t${directoryMap.nonRealigned}/${bam}\t${directoryMap.nonRealigned}/${bai}\n" }.collectFile( - name: 'nonRealigned.tsv', sort: true, storeDir: "${directoryMap.nonRealigned}" + name: 'nonRealigned.tsv', sort: true, storeDir: directoryMap.nonRealigned ) // Create intervals for realignement using both tumor+normal as input @@ -573,7 +571,7 @@ process RunBamQC { set idPatient, status, idSample, file(bam), file(bai) from bamForBamQC output: - file("${idSample}") into bamQCreport + file(idSample) into bamQCreport when: !params.noReports && !params.noBAMQC @@ -884,9 +882,9 @@ def minimalInformationMessage() { log.info "Genome : " + params.genome log.info "Genome_base : " + params.genome_base log.info "Step : " + step - log.info "Containers :" - if (params.repository) log.info " Repository : ${params.repository}" - else log.info " ContainerPath: " + params.containerPath + log.info "Containers" + if (params.repository != "") log.info " Repository : " + params.repository + if (params.containerPath != "") log.info " ContainerPath: " + params.containerPath log.info " Tag : " + params.tag log.info "Reference files used:" log.info " dbsnp :\n\t" + referenceMap.dbsnp diff --git a/nextflow.config b/nextflow.config index 14d0c2c474..0bfb631dda 100644 --- a/nextflow.config +++ b/nextflow.config @@ -1,6 +1,4 @@ /* -vim: syntax=groovy --*- mode: groovy;-*- * ------------------------------------------------- * Nextflow config file for Sarek * ------------------------------------------------- diff --git a/runMultiQC.nf b/runMultiQC.nf index 65ce92cb51..12faa06be8 100644 --- a/runMultiQC.nf +++ b/runMultiQC.nf @@ -1,8 +1,6 @@ #!/usr/bin/env nextflow /* -vim: syntax=groovy --*- mode: groovy;-*- kate: syntax groovy; space-indent on; indent-width 2; ================================================================================ = S A R E K = @@ -181,9 +179,9 @@ def minimalInformationMessage() { log.info "Out Dir : " + params.outDir log.info "Genome : " + params.genome log.info "Genome_base : " + params.genome_base - log.info "Containers :" - if (params.repository) log.info " Repository : ${params.repository}" - else log.info " ContainerPath: " + params.containerPath + log.info "Containers" + if (params.repository != "") log.info " Repository : " + params.repository + if (params.containerPath != "") log.info " ContainerPath: " + params.containerPath log.info " Tag : " + params.tag } diff --git a/somaticVC.nf b/somaticVC.nf index 754ed64673..ac54bc8ef7 100644 --- a/somaticVC.nf +++ b/somaticVC.nf @@ -1,8 +1,6 @@ #!/usr/bin/env nextflow /* -vim: syntax=groovy --*- mode: groovy;-*- kate: syntax groovy; space-indent on; indent-width 2; ================================================================================ = S A R E K = @@ -160,7 +158,7 @@ process RunBamQC { set idPatient, status, idSample, file(bam), file(bai) from bamForBamQC output: - file("${idSample}") into bamQCreport + file(idSample) into bamQCreport when: !params.noReports && !params.noBAMQC @@ -1021,13 +1019,13 @@ def minimalInformationMessage() { log.info "Launch Dir : " + workflow.launchDir log.info "Work Dir : " + workflow.workDir log.info "Out Dir : " + params.outDir - log.info "TSV file : ${tsvFile}" + log.info "TSV file : " + tsvFile log.info "Genome : " + params.genome log.info "Genome_base : " + params.genome_base log.info "Tools : " + tools.join(', ') - log.info "Containers :" - if (params.repository) log.info " Repository : ${params.repository}" - else log.info " ContainerPath: " + params.containerPath + log.info "Containers" + if (params.repository != "") log.info " Repository : " + params.repository + if (params.containerPath != "") log.info " ContainerPath: " + params.containerPath log.info " Tag : " + params.tag log.info "Reference files used:" log.info " acLoci :\n\t" + referenceMap.acLoci