Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
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 .nf-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ template:
name: raredisease
org: nf-core
outdir: .
version: 2.5.0
version: 2.5.1
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## v2.5.1 - Fulliautomatix (patch) [2025-07-04]

### `Changed`

- Split multiallelics and remove duplicates after merging mitochondrial variants from multiple samples. [#697](https://github.com/nf-core/raredisease/pull/697)

## v2.5.0 - Fulliautomatix [2025-05-22]

### `Added`
Expand Down
7 changes: 4 additions & 3 deletions assets/multiqc_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ custom_logo: "nf-core-raredisease_logo_light.png"
custom_logo_url: https://github.com/nf-core/raredisease/
custom_logo_title: "nf-core/raredisease"
report_comment: >
This report has been generated by the <a href="https://github.com/nf-core/raredisease/releases/tag/2.5.0" target="_blank">nf-core/raredisease</a>
analysis pipeline. For information about how to interpret these results, please see the
<a href="https://nf-co.re/raredisease/2.5.0/docs/output" target="_blank">documentation</a>.
This report has been generated by the <a href="https://github.com/nf-core/raredisease/releases/tag/2.5.1"
target="_blank">nf-core/raredisease</a> analysis pipeline. For information about
how to interpret these results, please see the <a href="https://nf-co.re/raredisease/2.5.1/docs/output"
target="_blank">documentation</a>.

report_section_order:
"nf-core-raredisease-methods-description":
Expand Down
10 changes: 10 additions & 0 deletions conf/modules/postprocess_MT_calls.config
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,16 @@ process {
ext.args2 = '-s 1 -b 2 -e 3'
}

withName: '.*POSTPROCESS_MT_CALLS:SPLIT_MULTIALLELICS_MT2' {
ext.args = '--output-type z --multiallelics -both'
ext.prefix = { "${meta.id}_merged_split" }
}

withName: '.*POSTPROCESS_MT_CALLS:REMOVE_DUPLICATES_MT2' {
ext.args = '--output-type z --rm-dup none'
ext.prefix = { "${meta.id}_merged_split_rmdup" }
}

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" }
Expand Down
2 changes: 1 addition & 1 deletion nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ manifest {
mainScript = 'main.nf'
defaultBranch = 'master'
nextflowVersion = '!>=24.04.2'
version = '2.5.0'
version = '2.5.1'
doi = '10.5281/zenodo.7995798'
doi = ''
}
Expand Down
105 changes: 26 additions & 79 deletions ro-crate-metadata.json

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion subworkflows/local/annotate_mt_snvs.nf
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ workflow ANNOTATE_MT_SNVS {
val_vep_genome // string: [mandatory] GRCh37 or GRCh38
val_vep_cache_version // string: [mandatory] 107
ch_vep_cache // channel: [mandatory] [ path(cache) ]
ch_vep_cache // channel: [mandatory] [ path(cache) ]
ch_vep_extra_files // channel: [mandatory] [ path(files) ]

main:
Expand Down
21 changes: 12 additions & 9 deletions subworkflows/local/generate_clinical_set.nf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Generarte clinical set of variants
// Generate clinical set of variants
//

include { ENSEMBLVEP_FILTERVEP } from '../../modules/nf-core/ensemblvep/filtervep'
Expand All @@ -23,20 +23,24 @@ workflow GENERATE_CLINICAL_SET {
}
.set { ch_clin_research_vcf }

ENSEMBLVEP_FILTERVEP(
ch_clin_research_vcf.clinical,
ch_hgnc_ids
)
.output
.set { ch_filtervep_out }
ch_clinical = Channel.empty()

if (val_ismt) {
BCFTOOLS_FILTER (ch_filtervep_out.map { meta, vcf -> return [meta, vcf, []]})
BCFTOOLS_FILTER (ch_clin_research_vcf.clinical.map { meta, vcf -> return [meta, vcf, []]})
ch_clinical = BCFTOOLS_FILTER.out.vcf
ch_versions = ch_versions.mix( BCFTOOLS_FILTER.out.versions )
} else {
ENSEMBLVEP_FILTERVEP(
ch_clin_research_vcf.clinical,
ch_hgnc_ids
)
.output
.set { ch_filtervep_out }

TABIX_BGZIP( ch_filtervep_out )
ch_clinical = TABIX_BGZIP.out.output

ch_versions = ch_versions.mix( ENSEMBLVEP_FILTERVEP.out.versions )
ch_versions = ch_versions.mix( TABIX_BGZIP.out.versions )
}

Expand All @@ -46,7 +50,6 @@ workflow GENERATE_CLINICAL_SET {

TABIX_TABIX( ch_clin_research_split )

ch_versions = ch_versions.mix( ENSEMBLVEP_FILTERVEP.out.versions )
ch_versions = ch_versions.mix( TABIX_TABIX.out.versions )

emit:
Expand Down
24 changes: 21 additions & 3 deletions subworkflows/local/postprocess_MT_calls/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ include { BCFTOOLS_NORM as SPLIT_MULTIALLELICS_MT } from '../../..
include { TABIX_TABIX as TABIX_TABIX_MT } from '../../../modules/nf-core/tabix/tabix/main'
include { BCFTOOLS_NORM as REMOVE_DUPLICATES_MT } from '../../../modules/nf-core/bcftools/norm/main'
include { TABIX_TABIX as TABIX_TABIX_MT2 } from '../../../modules/nf-core/tabix/tabix/main'
include { BCFTOOLS_NORM as SPLIT_MULTIALLELICS_MT2 } from '../../../modules/nf-core/bcftools/norm/main'
include { TABIX_TABIX as TABIX_TABIX_MT3 } from '../../../modules/nf-core/tabix/tabix/main'
include { BCFTOOLS_NORM as REMOVE_DUPLICATES_MT2 } from '../../../modules/nf-core/bcftools/norm/main'
include { TABIX_TABIX as TABIX_TABIX_MT4 } from '../../../modules/nf-core/tabix/tabix/main'
include { BCFTOOLS_MERGE as BCFTOOLS_MERGE_MT } from '../../../modules/nf-core/bcftools/merge/main'
include { TABIX_TABIX as TABIX_TABIX_MERGE } from '../../../modules/nf-core/tabix/tabix/main'
include { PICARD_LIFTOVERVCF } from '../../../modules/nf-core/picard/liftovervcf/main'
Expand All @@ -25,7 +29,7 @@ workflow POSTPROCESS_MT_CALLS {
ch_mtshift_backchain // channel: [mandatory] [ val(meta), path(backchain) ]
ch_case_info // channel: [mandatory] [ val(case_info) ]
ch_foundin_header // channel: [mandatory] [ path(header) ]
ch_genome_chrsizes // channel: [mandatory] [ path(chrsizes) ]
ch_genome_chrsizes // channel: [mandatory] [ path(chrsizes) ]

main:
ch_versions = Channel.empty()
Expand Down Expand Up @@ -103,6 +107,20 @@ workflow POSTPROCESS_MT_CALLS {

TABIX_TABIX_MERGE(ch_addfoundintag_in)

ch_addfoundintag_in
.join(TABIX_TABIX_MERGE.out.tbi, failOnMismatch:true, failOnDuplicate:true)
.set { ch_in_split2 }

SPLIT_MULTIALLELICS_MT2 (ch_in_split2, ch_genome_fasta)
TABIX_TABIX_MT3(SPLIT_MULTIALLELICS_MT2.out.vcf)

// Removing duplicates and merging if there is more than one sample
SPLIT_MULTIALLELICS_MT2.out.vcf
.join(TABIX_TABIX_MT3.out.tbi, failOnMismatch:true, failOnDuplicate:true)
.set { ch_in_remdup2 }
REMOVE_DUPLICATES_MT2(ch_in_remdup2, ch_genome_fasta)
TABIX_TABIX_MT4(REMOVE_DUPLICATES_MT2.out.vcf)

ch_genome_chrsizes.flatten().map{chromsizes ->
return [[id:'mutect2'], chromsizes]
}
Expand All @@ -112,8 +130,8 @@ workflow POSTPROCESS_MT_CALLS {
.map{meta,bed,tbi -> return [bed, tbi]}
.set{ch_varcallerbed}

ch_addfoundintag_in
.join(TABIX_TABIX_MERGE.out.tbi)
REMOVE_DUPLICATES_MT2.out.vcf
.join(TABIX_TABIX_MT4.out.tbi)
.combine(ch_varcallerbed)
.set { ch_annotate_in }

Expand Down
Loading