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

Minor tweaks #560

Merged
merged 6 commits into from
Apr 9, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1 @@
*.nf linguist-language=Groovy
*.config linguist-language=nextflow
7 changes: 5 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ language: java

jdk: openjdk8

node_js: "node"

services:
- docker

Expand All @@ -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"
8 changes: 3 additions & 5 deletions annotate.nf
Original file line number Diff line number Diff line change
@@ -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 =
Expand Down Expand Up @@ -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
Expand Down
8 changes: 3 additions & 5 deletions buildContainers.nf
Original file line number Diff line number Diff line change
@@ -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 =
Expand Down Expand Up @@ -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
}

Expand Down
6 changes: 2 additions & 4 deletions buildReferences.nf
Original file line number Diff line number Diff line change
@@ -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 =
Expand Down Expand Up @@ -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
}

Expand Down
2 changes: 0 additions & 2 deletions configuration/aws-batch.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
/*
vim: syntax=groovy
-*- mode: groovy;-*-
* -------------------------------------------------
* Nextflow config file for Sarek
* -------------------------------------------------
Expand Down
6 changes: 2 additions & 4 deletions configuration/base.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
/*
vim: syntax=groovy
-*- mode: groovy;-*-
* -------------------------------------------------
* Nextflow config file for Sarek
* -------------------------------------------------
Expand All @@ -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
Expand Down
2 changes: 0 additions & 2 deletions configuration/containers.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
/*
vim: syntax=groovy
-*- mode: groovy;-*-
* -------------------------------------------------
* Nextflow config file for Sarek
* -------------------------------------------------
Expand Down
2 changes: 0 additions & 2 deletions configuration/docker.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
/*
vim: syntax=groovy
-*- mode: groovy;-*-
* -------------------------------------------------
* Nextflow config file for Sarek
* -------------------------------------------------
Expand Down
2 changes: 0 additions & 2 deletions configuration/genomes.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
/*
vim: syntax=groovy
-*- mode: groovy;-*-
* -------------------------------------------------
* Nextflow config file for Sarek
* -------------------------------------------------
Expand Down
2 changes: 0 additions & 2 deletions configuration/singularity-path.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
/*
vim: syntax=groovy
-*- mode: groovy;-*-
* -------------------------------------------------
* Nextflow config file for Sarek
* -------------------------------------------------
Expand Down
2 changes: 0 additions & 2 deletions configuration/singularity.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
/*
vim: syntax=groovy
-*- mode: groovy;-*-
* -------------------------------------------------
* Nextflow config file for Sarek
* -------------------------------------------------
Expand Down
2 changes: 0 additions & 2 deletions configuration/travis.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
/*
vim: syntax=groovy
-*- mode: groovy;-*-
* -------------------------------------------------
* Nextflow config file for Sarek
* -------------------------------------------------
Expand Down
2 changes: 0 additions & 2 deletions configuration/uppmax-localhost.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
/*
vim: syntax=groovy
-*- mode: groovy;-*-
* -------------------------------------------------
* Nextflow config file for Sarek
* -------------------------------------------------
Expand Down
2 changes: 0 additions & 2 deletions configuration/uppmax-slurm.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
/*
vim: syntax=groovy
-*- mode: groovy;-*-
* -------------------------------------------------
* Nextflow config file for Sarek
* -------------------------------------------------
Expand Down
13 changes: 5 additions & 8 deletions germlineVC.nf
Original file line number Diff line number Diff line change
@@ -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 =
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
12 changes: 5 additions & 7 deletions main.nf
Original file line number Diff line number Diff line change
@@ -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 =
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions nextflow.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
/*
vim: syntax=groovy
-*- mode: groovy;-*-
* -------------------------------------------------
* Nextflow config file for Sarek
* -------------------------------------------------
Expand Down
8 changes: 3 additions & 5 deletions runMultiQC.nf
Original file line number Diff line number Diff line change
@@ -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 =
Expand Down Expand Up @@ -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
}

Expand Down
12 changes: 5 additions & 7 deletions somaticVC.nf
Original file line number Diff line number Diff line change
@@ -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 =
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down