Skip to content

Commit ddcab5d

Browse files
committed
Update to Nextflow 25.04
1 parent a24ba1d commit ddcab5d

File tree

39 files changed

+88
-748
lines changed

39 files changed

+88
-748
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
fail-fast: false
6060
matrix:
6161
NXF_VER:
62-
- "24.04.2"
62+
- "25.04.0"
6363
- "latest-everything"
6464
profile:
6565
- "conda"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
[![GitHub Actions CI Status](https://github.com/nf-core/fetchngs/actions/workflows/ci.yml/badge.svg)](https://github.com/nf-core/fetchngs/actions/workflows/ci.yml)
99
[![GitHub Actions Linting Status](https://github.com/nf-core/fetchngs/actions/workflows/linting.yml/badge.svg)](https://github.com/nf-core/fetchngs/actions/workflows/linting.yml)[![AWS CI](https://img.shields.io/badge/CI%20tests-full%20size-FF9900?labelColor=000000&logo=Amazon%20AWS)](https://nf-co.re/fetchngs/results)[![Cite with Zenodo](http://img.shields.io/badge/DOI-10.5281/zenodo.5070524-1073c8?labelColor=000000)](https://doi.org/10.5281/zenodo.5070524)[![nf-test](https://img.shields.io/badge/unit_tests-nf--test-337ab7.svg)](https://www.nf-test.com)
1010

11-
[![Nextflow](https://img.shields.io/badge/nextflow%20DSL2-%E2%89%A524.04.2-23aa62.svg)](https://www.nextflow.io/)
11+
[![Nextflow](https://img.shields.io/badge/nextflow%20DSL2-%E2%89%A525.04.0-23aa62.svg)](https://www.nextflow.io/)
1212
[![run with conda](http://img.shields.io/badge/run%20with-conda-3EB049?labelColor=000000&logo=anaconda)](https://docs.conda.io/en/latest/)
1313
[![run with docker](https://img.shields.io/badge/run%20with-docker-0db7ed?labelColor=000000&logo=docker)](https://www.docker.com/)
1414
[![run with singularity](https://img.shields.io/badge/run%20with-singularity-1d355c.svg?labelColor=000000)](https://sylabs.io/docs/)

bin/multiqc_mappings_config.py

Lines changed: 0 additions & 13 deletions
This file was deleted.

conf/base.config

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,6 @@ process {
1313
memory = { 6.GB * task.attempt }
1414
time = { 4.h * task.attempt }
1515

16-
publishDir = [
17-
path: { "${params.outdir}/${task.process.tokenize(':')[-1].tokenize('_')[0].toLowerCase()}" },
18-
mode: params.publish_dir_mode,
19-
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
20-
]
21-
2216
errorStrategy = { task.exitStatus in ((130..145) + 104) ? 'retry' : 'finish' }
2317
maxRetries = 1
2418
maxErrors = '-1'

main.nf

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
----------------------------------------------------------------------------------------
1010
*/
1111

12+
nextflow.preview.output = true
13+
1214
/*
1315
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1416
IMPORT FUNCTIONS / MODULES / SUBWORKFLOWS / WORKFLOWS
@@ -18,6 +20,7 @@
1820
include { SRA } from './workflows/sra'
1921
include { PIPELINE_INITIALISATION } from './subworkflows/local/utils_nfcore_fetchngs_pipeline'
2022
include { PIPELINE_COMPLETION } from './subworkflows/local/utils_nfcore_fetchngs_pipeline'
23+
include { softwareVersionsToYAML } from './subworkflows/nf-core/utils_nfcore_pipeline'
2124

2225
/*
2326
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -40,6 +43,9 @@ workflow NFCORE_FETCHNGS {
4043
//
4144
SRA ( ids )
4245

46+
emit:
47+
samples = SRA.out.samples
48+
metadata = SRA.out.metadata
4349
}
4450

4551
/*
@@ -81,6 +87,36 @@ workflow {
8187
params.monochrome_logs,
8288
params.hook_url
8389
)
90+
91+
publish:
92+
samples = NFCORE_FETCHNGS.out.samples
93+
metadata = NFCORE_FETCHNGS.out.metadata
94+
versions = softwareVersionsToYAML()
95+
}
96+
97+
output {
98+
samples {
99+
path { sample ->
100+
sample.fastq_1 >> 'fastq/'
101+
sample.fastq_2 >> 'fastq/'
102+
sample.md5_1 >> 'fastq/md5/'
103+
sample.md5_2 >> 'fastq/md5/'
104+
}
105+
index {
106+
path 'samplesheet/samplesheet.json'
107+
}
108+
}
109+
110+
metadata {
111+
path 'metadata'
112+
}
113+
114+
versions {
115+
path '.'
116+
index {
117+
path 'nf_core_fetchngs_software_mqc_versions.yml'
118+
}
119+
}
84120
}
85121

86122
/*

modules/local/aspera_cli/main.nf

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ process ASPERA_CLI {
1414
output:
1515
tuple val(meta), path("*fastq.gz"), emit: fastq
1616
tuple val(meta), path("*md5") , emit: md5
17-
path "versions.yml" , emit: versions
17+
tuple val("${task.process}"), val('aspera_cli'), eval('ascli --version'), topic: versions
1818

1919
script:
2020
def args = task.ext.args ?: ''
@@ -31,11 +31,6 @@ process ASPERA_CLI {
3131
3232
echo "${meta.md5_1} ${meta.id}.fastq.gz" > ${meta.id}.fastq.gz.md5
3333
md5sum -c ${meta.id}.fastq.gz.md5
34-
35-
cat <<-END_VERSIONS > versions.yml
36-
"${task.process}":
37-
aspera_cli: \$(ascli --version)
38-
END_VERSIONS
3934
"""
4035
} else {
4136
"""
@@ -58,11 +53,6 @@ process ASPERA_CLI {
5853
5954
echo "${meta.md5_2} ${meta.id}_2.fastq.gz" > ${meta.id}_2.fastq.gz.md5
6055
md5sum -c ${meta.id}_2.fastq.gz.md5
61-
62-
cat <<-END_VERSIONS > versions.yml
63-
"${task.process}":
64-
aspera_cli: \$(ascli --version)
65-
END_VERSIONS
6656
"""
6757
}
6858
}
Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,5 @@
11
process {
22
withName: 'ASPERA_CLI' {
33
ext.args = '-QT -l 300m -P33001'
4-
publishDir = [
5-
[
6-
path: { "${params.outdir}/fastq" },
7-
mode: params.publish_dir_mode,
8-
pattern: "*.fastq.gz"
9-
],
10-
[
11-
path: { "${params.outdir}/fastq/md5" },
12-
mode: params.publish_dir_mode,
13-
pattern: "*.md5"
14-
]
15-
]
164
}
175
}

modules/local/multiqc_mappings_config/main.nf

Lines changed: 0 additions & 27 deletions
This file was deleted.

modules/local/multiqc_mappings_config/nextflow.config

Lines changed: 0 additions & 9 deletions
This file was deleted.

modules/local/multiqc_mappings_config/tests/main.nf.test

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)