Skip to content

Commit 383527e

Browse files
author
Szilveszter Juhos
authored
Merge pull request nf-core#659 from MaxUlysse/Manifest
update Nextflow to 0.32.0 and fix bugs
2 parents e983ff2 + 981b097 commit 383527e

14 files changed

Lines changed: 34 additions & 75 deletions

.travis.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,23 @@ addons:
99

1010
env:
1111
global:
12-
- NXF_VER=0.31.0 SGT_VER=2.5.1
12+
- NXF_VER=0.32.0
1313
matrix:
14-
- CE=docker TEST=SOMATIC
15-
- CE=docker TEST=ANNOTATEVEP
16-
- CE=docker TEST=ANNOTATESNPEFF
17-
- CE=docker TEST=GERMLINE
18-
14+
- TEST=SOMATIC
15+
- TEST=ANNOTATEVEP
16+
- TEST=ANNOTATESNPEFF
17+
- TEST=GERMLINE
1918

2019
install:
21-
# Install Nextflow (and Singularity if needed)
22-
- "./scripts/install.sh --engine $CE"
20+
# Install Nextflow
21+
- curl -fsSL get.nextflow.io | bash
22+
- chmod +x nextflow
23+
- sudo mv nextflow /usr/local/bin/
2324
# Donwload big containers for ANNOTATEVEP and ANNOTATESNPEF tests)
24-
- "travis_retry ./scripts/containers.sh --profile $CE --test $TEST"
25+
- "travis_retry ./scripts/containers.sh --profile docker --test $TEST"
2526

2627
# Build references when needed
27-
before_script: "./scripts/test.sh --profile $CE --test $TEST --build"
28+
before_script: "./scripts/test.sh --profile docker --test $TEST --build"
2829

2930
# Actual tests
30-
script: "./scripts/test.sh --profile $CE --test $TEST"
31+
script: "./scripts/test.sh --profile docker --test $TEST"

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1010
### `Changed`
1111

1212
- [#646](https://github.com/SciLifeLab/Sarek/pull/646) - Update [`pathfindr`](https://github.com/NBISweden/pathfindr) submodule
13+
- [#659](https://github.com/SciLifeLab/Sarek/pull/659) - Update Nextflow to `0.32.0`
1314
- [#660](https://github.com/SciLifeLab/Sarek/pull/660) - Update docs
1415

1516
### `Fixed`
1617

1718
- [#657](https://github.com/SciLifeLab/Sarek/pull/657) - Fix `RunMultiQC.nf` bug
19+
- [#659](https://github.com/SciLifeLab/Sarek/pull/659) - Fix bugs due to updating Nextflow
1820

1921
## [2.2.0] - Skårki - 2018-09-21
2022

annotate.nf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ def nextflowMessage() {
372372

373373
def sarekMessage() {
374374
// Display Sarek message
375-
log.info "Sarek - Workflow For Somatic And Germline Variations ~ ${params.version} - " + this.grabRevision() + (workflow.commitId ? " [${workflow.commitId}]" : "")
375+
log.info "Sarek - Workflow For Somatic And Germline Variations ~ ${workflow.manifest.version} - " + this.grabRevision() + (workflow.commitId ? " [${workflow.commitId}]" : "")
376376
}
377377

378378
def startMessage() {

buildContainers.nf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def helpMessage() {
200200
log.info " --containerPath: Select where to download images"
201201
log.info " Default: \$PWD"
202202
log.info " --tag`: Choose the tag for the containers"
203-
log.info " Default (version number): " + params.version
203+
log.info " Default (version number): " + workflow.manifest.version
204204
}
205205

206206
def minimalInformationMessage() {
@@ -222,7 +222,7 @@ def nextflowMessage() {
222222

223223
def sarekMessage() {
224224
// Display Sarek message
225-
log.info "Sarek ~ ${params.version} - " + this.grabRevision() + (workflow.commitId ? " [${workflow.commitId}]" : "")
225+
log.info "Sarek ~ ${workflow.manifest.version} - " + this.grabRevision() + (workflow.commitId ? " [${workflow.commitId}]" : "")
226226
}
227227

228228
def startMessage() {

buildReferences.nf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ def nextflowMessage() {
274274

275275
def sarekMessage() {
276276
// Display Sarek message
277-
log.info "Sarek - Workflow For Somatic And Germline Variations ~ ${params.version} - " + this.grabRevision() + (workflow.commitId ? " [${workflow.commitId}]" : "")
277+
log.info "Sarek - Workflow For Somatic And Germline Variations ~ ${workflow.manifest.version} - " + this.grabRevision() + (workflow.commitId ? " [${workflow.commitId}]" : "")
278278
}
279279

280280
def startMessage() {

conf/base.config

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ params {
3636
targetBED = false // no targets by default
3737
test = false // Not testing by default
3838
verbose = false // Enable for more verbose information
39-
version = '2.2.0' // Workflow version
4039
}
4140

4241
process {

germlineVC.nf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ process CreateIntervalBeds {
223223

224224
bedIntervals = bedIntervals
225225
.map { intervalFile ->
226-
final duration = 0.0
226+
def duration = 0.0
227227
for (line in intervalFile.readLines()) {
228228
final fields = line.split('\t')
229229
if (fields.size() >= 5) duration += fields[4].toFloat()
@@ -673,7 +673,7 @@ def nextflowMessage() {
673673

674674
def sarekMessage() {
675675
// Display Sarek message
676-
log.info "Sarek - Workflow For Somatic And Germline Variations ~ ${params.version} - " + this.grabRevision() + (workflow.commitId ? " [${workflow.commitId}]" : "")
676+
log.info "Sarek - Workflow For Somatic And Germline Variations ~ ${workflow.manifest.version} - " + this.grabRevision() + (workflow.commitId ? " [${workflow.commitId}]" : "")
677677
}
678678

679679
def startMessage() {

lib/SarekUtils.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ class SarekUtils {
114114
def f = file(fileToCheck)
115115
// this is an expanded wildcard: we can assume all files exist
116116
if (f instanceof List && f.size() > 0) return true
117-
else if (!f.exists()) {
117+
else if (!f.exists()) {
118118
println "Missing references: ${referenceFile} ${fileToCheck}"
119119
return false
120120
}
@@ -184,7 +184,7 @@ class SarekUtils {
184184

185185
// Compare params to list of verified params
186186
static def isAllowedParams(params) {
187-
final test = true
187+
def test = true
188188
params.each{
189189
if (!checkParams(it.toString().split('=')[0])) {
190190
println "params ${it.toString().split('=')[0]} is unknown"

main.nf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ def checkUppmaxProject() {
454454
}
455455

456456
def checkExactlyOne(list) {
457-
final n = 0
457+
def n = 0
458458
list.each{n += it ? 1 : 0}
459459
return n == 1
460460
}
@@ -668,7 +668,7 @@ def nextflowMessage() {
668668

669669
def sarekMessage() {
670670
// Display Sarek message
671-
log.info "Sarek - Workflow For Somatic And Germline Variations ~ ${params.version} - " + this.grabRevision() + (workflow.commitId ? " [${workflow.commitId}]" : "")
671+
log.info "Sarek - Workflow For Somatic And Germline Variations ~ ${workflow.manifest.version} - " + this.grabRevision() + (workflow.commitId ? " [${workflow.commitId}]" : "")
672672
}
673673

674674
def startMessage() {

nextflow.config

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@
99
*/
1010

1111
manifest {
12+
author = 'Szilvester Juhos, Maxime Garcia'
1213
description = 'Sarek - Workflow For Somatic And Germline Variations'
1314
homePage = 'http://sarek.scilifelab.se'
1415
mainScript = 'main.nf'
1516
name = 'Sarek'
16-
nextflowVersion = '>=0.31.0'
17+
nextflowVersion = '>=0.32.0'
18+
version = '2.2.0'
1719
}
1820

1921
env {

0 commit comments

Comments
 (0)