Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
d3431c1
migrate to output for align*, qc_bam, and call*
ramprasadn Mar 12, 2026
cbfbb34
updaate changelog
ramprasadn Mar 12, 2026
9178577
update tests and snaps
ramprasadn Mar 13, 2026
aa5f876
update snapshot
ramprasadn Mar 13, 2026
5788ace
update snapshots
ramprasadn Mar 13, 2026
5f9ce3c
Merge branch 'outputblock' of github.com:nf-core/raredisease into out…
ramprasadn Mar 13, 2026
88ad048
update sentieon tests
ramprasadn Mar 13, 2026
53557f3
add sort [skip ci]
ramprasadn Mar 13, 2026
221eee3
update sentieon snapshots [skip ci]
ramprasadn Mar 13, 2026
78bfd88
Update other snaps
ramprasadn Mar 13, 2026
736592d
update nxf version
ramprasadn Mar 13, 2026
7313f09
Merge branch 'outputblock' of github.com:nf-core/raredisease into out…
ramprasadn Mar 13, 2026
746ba25
update snap for postprocess MT [skip ci]
ramprasadn Mar 13, 2026
0b74fb3
update sentieon snapshot
ramprasadn Mar 13, 2026
ef5ec40
Update ro-crate-metadata.json
ramprasadn Mar 13, 2026
21dc695
Update README.md
ramprasadn Mar 13, 2026
4a3734c
Update nf-test.yml
ramprasadn Mar 13, 2026
2535e92
Merge branch 'outputblock' of github.com:nf-core/raredisease into out…
ramprasadn Mar 13, 2026
6c7ba9b
update sentieon snapshot
ramprasadn Mar 13, 2026
e456257
Merge branch 'outputblock' of github.com:nf-core/raredisease into out…
ramprasadn Mar 13, 2026
1de736c
Migrate strange and subsampling workflows to output and update snapshot
ramprasadn Mar 16, 2026
2659d97
Update nextflow.config
ramprasadn Mar 16, 2026
5212f79
Merge branch 'outputblock' of github.com:nf-core/raredisease into out…
ramprasadn Mar 16, 2026
6b5625a
update snapshot
ramprasadn Mar 16, 2026
57fa0af
Merge branch 'dev' into outputblock
ramprasadn Mar 16, 2026
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
4 changes: 2 additions & 2 deletions .github/workflows/nf-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
env:
NFT_VER: ${{ env.NFT_VER }}
with:
max_shards: 14
max_shards: 20

- name: debug
run: |
Expand All @@ -77,7 +77,7 @@ jobs:
- isMain: false
profile: "singularity"
NXF_VER:
- "25.04.0"
- "25.10.4"
- "latest-everything"
env:
NXF_ANSI_LOG: false
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Removed haplocheck [#778](https://github.com/nf-core/raredisease/pull/778)
- Removed HmtNote [#779](https://github.com/nf-core/raredisease/pull/779)
- Updated svbd module [#781](https://github.com/nf-core/raredisease/pull/781)
- Migrate file publishing from publishDir to a centralized output {} block for some workflows [#784](https://github.com/nf-core/raredisease/pull/784)
- Replace local gens module with nf-core module [#785](https://github.com/nf-core/raredisease/pull/785)

### `Fixed`
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
[![nf-test](https://img.shields.io/badge/unit_tests-nf--test-337ab7.svg)](https://www.nf-test.com)
[![GitHub Actions Linting Status](https://github.com/nf-core/raredisease/actions/workflows/linting.yml/badge.svg)](https://github.com/nf-core/raredisease/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/raredisease/results)[![Cite with Zenodo](http://img.shields.io/badge/DOI-10.5281/zenodo.7995798-1073c8?labelColor=000000)](https://doi.org/10.5281/zenodo.7995798)

[![Nextflow](https://img.shields.io/badge/version-%E2%89%A525.04.0-green?style=flat&logo=nextflow&logoColor=white&color=%230DC09D&link=https%3A%2F%2Fnextflow.io)](https://www.nextflow.io/)
[![Nextflow](https://img.shields.io/badge/version-%E2%89%A525.10.4-green?style=flat&logo=nextflow&logoColor=white&color=%230DC09D&link=https%3A%2F%2Fnextflow.io)](https://www.nextflow.io/)
[![nf-core template version](https://img.shields.io/badge/nf--core_template-3.5.1-green?style=flat&logo=nfcore&logoColor=white&color=%2324B064&link=https%3A%2F%2Fnf-co.re)](https://github.com/nf-core/tools/releases/tag/3.5.1)
[![run with conda](http://img.shields.io/badge/run%20with-conda-3EB049?labelColor=000000&logo=anaconda)](https://docs.conda.io/en/latest/)
[![run with docker](https://img.shields.io/badge/run%20with-docker-0db7ed?labelColor=000000&logo=docker)](https://www.docker.com/)
Expand Down
10 changes: 0 additions & 10 deletions conf/modules/align.config
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,10 @@ process{
'--correction',
'--overrepresentation_analysis'
].join(' ').trim() }
publishDir = [
path: { "${params.outdir}/trimming" },
mode: params.publish_dir_mode,
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
]
}

withName: '.*ALIGN:SAMTOOLS_VIEW' {
ext.args = { '--output-fmt cram' }
ext.prefix = { "${meta.id}_sort_md" }
publishDir = [
path: { "${params.outdir}/alignment" },
mode: params.publish_dir_mode,
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
]
}
}
15 changes: 0 additions & 15 deletions conf/modules/align_bwa_bwamem2_bwameme.config
Original file line number Diff line number Diff line change
Expand Up @@ -57,20 +57,5 @@ process {
withName: '.*ALIGN:ALIGN_BWA_BWAMEM2_BWAMEME:MARKDUPLICATES' {
ext.args = "--TMP_DIR ."
ext.prefix = { "${meta.id}_sorted_md" }
publishDir = [
enabled: !params.save_mapped_as_cram,
path: { "${params.outdir}/alignment" },
mode: params.publish_dir_mode,
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
]
}

withName: '.*ALIGN:ALIGN_BWA_BWAMEM2_BWAMEME:SAMTOOLS_INDEX_MARKDUP' {
publishDir = [
enabled: !params.save_mapped_as_cram,
path: { "${params.outdir}/alignment" },
mode: params.publish_dir_mode,
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
]
}
}
6 changes: 0 additions & 6 deletions conf/modules/align_sentieon.config
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,5 @@ process {
withName: '.*ALIGN:ALIGN_SENTIEON:SENTIEON_DEDUP' {
ext.args4 = { params.rmdup ? "--rmdup" : '' }
ext.prefix = { "${meta.id}_dedup.bam" }
publishDir = [
enabled: !params.save_mapped_as_cram,
path: { "${params.outdir}/alignment" },
mode: params.publish_dir_mode,
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
]
}
}
13 changes: 0 additions & 13 deletions conf/modules/call_mobile_elements.config
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,5 @@ process {
withName: '.*CALL_MOBILE_ELEMENTS:SVDB_MERGE_ME' {
ext.args = { '--bnd_distance 150 --overlap 0.5' }
ext.prefix = { "${meta.id}_mobile_elements" }
publishDir = [
path: { "${params.outdir}/call_mobile_elements" },
mode: params.publish_dir_mode,
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
]
}

withName: '.*CALL_MOBILE_ELEMENTS:TABIX_ME' {
publishDir = [
path: { "${params.outdir}/call_mobile_elements" },
mode: params.publish_dir_mode,
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
]
}
}
10 changes: 0 additions & 10 deletions conf/modules/call_repeat_expansions.config
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,12 @@ process {

withName: '.*CALL_REPEAT_EXPANSIONS:SAMTOOLS_SORT' {
ext.prefix = { "${meta.id}_exphunter_sorted" }
publishDir = [
path: { "${params.outdir}/repeat_expansions" },
mode: params.publish_dir_mode,
saveAs: { filename -> filename.equals('versions.yml') ? null : filename },
]
}

withName: '.*CALL_REPEAT_EXPANSIONS:BCFTOOLS_REHEADER_EXP' {
ext.args = "--temp-prefix ."
ext.args2 = "-O v"
ext.prefix = { "${meta.id}_repeat_expansion" }
publishDir = [
path: { "${params.outdir}/repeat_expansions" },
mode: params.publish_dir_mode,
saveAs: { filename -> filename.equals('versions.yml') ? null : filename },
]
}

withName: '.*CALL_REPEAT_EXPANSIONS:SPLIT_MULTIALLELICS_EXP' {
Expand Down
11 changes: 0 additions & 11 deletions conf/modules/call_snv.config
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,10 @@ process {
withName: '.*CALL_SNV:GATK4_SELECTVARIANTS' {
ext.args = { "--exclude-intervals ${params.mito_name}" }
ext.prefix = { "${meta.id}_snv" }
publishDir = [
path: { "${params.outdir}/call_snv/genome" },
mode: params.publish_dir_mode,
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
]
}

withName: '.*CALL_SNV:BCFTOOLS_CONCAT' {
ext.args = { "--write-index=tbi" }
ext.prefix = { "${meta.id}_mt_and_nuclear_snvs" }
publishDir = [
enabled: params.concatenate_snv_calls,
path: { "${params.outdir}/call_snv/concatenated_calls" },
mode: params.publish_dir_mode,
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
]
}
}
13 changes: 0 additions & 13 deletions conf/modules/call_structural_variants.config
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,5 @@ process {
withName: '.*CALL_STRUCTURAL_VARIANTS:SVDB_MERGE' {
ext.prefix = {"${meta.id}_sv"}
ext.args = '--pass_only --same_order'
publishDir = [
path: { "${params.outdir}/call_sv/genome" },
mode: params.publish_dir_mode,
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
]
}

withName: '.*CALL_STRUCTURAL_VARIANTS:TABIX_TABIX' {
publishDir = [
path: { "${params.outdir}/call_sv/genome" },
mode: params.publish_dir_mode,
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
]
}
}
13 changes: 0 additions & 13 deletions conf/modules/call_sv_MT.config
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,6 @@ process {
withName: '.*CALL_SV_MT:MT_DELETION' {
ext.args = '-s --insert-size 16000'
ext.prefix = { "${meta.id}_mitochondria_deletions" }
publishDir = [
path: { "${params.outdir}/call_sv/mitochondria" },
mode: params.publish_dir_mode,
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
]
}

withName: '.*CALL_SV_MT:MITOSALT' {
publishDir = [
path: { "${params.outdir}/call_sv/mitochondria" },
mode: params.publish_dir_mode,
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
]
}

}
13 changes: 0 additions & 13 deletions conf/modules/postprocess_MT_calls.config
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,6 @@ process {
withName: '.*POSTPROCESS_MT_CALLS:BCFTOOLS_ANNOTATE' {
ext.args = "-c CHROM,FROM,TO,FOUND_IN --output-type z --include FILTER='\"PASS\"'"
ext.prefix = { "${meta.id}_mitochondria" }
publishDir = [
path: { "${params.outdir}/call_snv/mitochondria" },
mode: params.publish_dir_mode,
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
]
}

withName: '.*POSTPROCESS_MT_CALLS:TABIX_ANNOTATE' {
publishDir = [
path: { "${params.outdir}/call_snv/mitochondria" },
mode: params.publish_dir_mode,
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
]
}

}
13 changes: 0 additions & 13 deletions conf/modules/qc_bam.config
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,6 @@
//

process {
withName: '.*QC_BAM:.*' {
publishDir = [
path: { "${params.outdir}/qc_bam" },
mode: params.publish_dir_mode,
saveAs: { filename -> filename.equals('versions.yml') ? null : filename },
]
}

withName: '.*QC_BAM:PICARD_COLLECTMULTIPLEMETRICS' {
ext.args = "--TMP_DIR ."
ext.prefix = { "${meta.id}_multiplemetrics" }
Expand Down Expand Up @@ -61,11 +53,6 @@ process {
// NGSBITS_SAMPLEGENDER needs a chrX and chrY in order to run so we skip it for the two test profiles
ext.when = { !(workflow.profile.tokenize(',').intersect(['test', 'test_singleton', 'test_sentieon', 'test_full']).size() >= 1) || workflow.stubRun }
ext.prefix = { "${meta.id}_ngsbits_sex" }
publishDir = [
path: { "${params.outdir}/ngsbits_samplegender" },
mode: params.publish_dir_mode,
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
]
}

withName: '.*QC_BAM:PICARD_COLLECTWGSMETRICS_WG' {
Expand Down
5 changes: 0 additions & 5 deletions conf/modules/raredisease.config
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,6 @@ process {
process {
withName: '.*STRANGER' {
ext.prefix = { "${meta.id}_repeat_expansion_stranger" }
publishDir = [
path: { "${params.outdir}/repeat_expansions" },
mode: params.publish_dir_mode,
saveAs: { filename -> filename.equals('versions.yml') ? null : filename },
]
}
}

Expand Down
5 changes: 0 additions & 5 deletions conf/modules/subsample_mt_frac.config
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ process {
withName: '.*SUBSAMPLE_MT_FRAC:SAMTOOLS_VIEW' {
ext.args = { "--output-fmt BAM -h -F 4 -s ${meta.seedfrac}" }
ext.prefix = { "${meta.id}_mt_subsample" }
publishDir = [
path: { "${params.outdir}/alignment" },
mode: params.publish_dir_mode,
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
]
}

}
5 changes: 0 additions & 5 deletions conf/modules/subsample_mt_reads.config
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,6 @@ process {

withName: '.*SUBSAMPLE_MT_READS:SAMTOOLS_SORT' {
ext.prefix = { "${meta.id}_mt_subsample" }
publishDir = [
path: { "${params.outdir}/alignment" },
mode: params.publish_dir_mode,
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
]
}

}
10 changes: 10 additions & 0 deletions main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,7 @@ workflow NFCORE_RAREDISEASE {
)
emit:
multiqc_report = RAREDISEASE.out.multiqc_report // channel: /path/to/multiqc_report.html
publish = RAREDISEASE.out.publish // channel: [ val(destination), val(value) ]
}
/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down Expand Up @@ -586,6 +587,15 @@ workflow {
params.hook_url,
NFCORE_RAREDISEASE.out.multiqc_report
)

publish:
subworkflow_results = NFCORE_RAREDISEASE.out.publish
}

output {
subworkflow_results {
path { destination, value -> destination }
}
}

/*
Expand Down
5 changes: 4 additions & 1 deletion nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@ params {
validate_params = true
}

outputDir = params.outdir
workflow.output.mode = 'copy'
Comment thread
maxulysse marked this conversation as resolved.

// Load base.config by default for all pipelines
includeConfig 'conf/base.config'

Expand Down Expand Up @@ -462,7 +465,7 @@ manifest {
description = """call and score variants from WGS/WES of rare disease patients"""
mainScript = 'main.nf'
defaultBranch = 'master'
nextflowVersion = '!>=25.04.0'
nextflowVersion = '!>=25.10.4'
version = '2.7.0dev'
doi = '10.5281/zenodo.7995798'
}
Expand Down
Loading
Loading