Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge fast processes #259

Merged
merged 26 commits into from
Jan 27, 2025
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
remove all tabix from vcf_annotation
nvnieuwk committed Jan 23, 2025
commit 465d7b2abebc09675b91cd93076f951ed3feba04
20 changes: 1 addition & 19 deletions subworkflows/local/vcf_annotation/main.nf
Original file line number Diff line number Diff line change
@@ -2,11 +2,7 @@
// ANNOTATION
//

include { ENSEMBLVEP_VEP } from '../../../modules/nf-core/ensemblvep/vep/main'
include { VCFANNO } from '../../../modules/nf-core/vcfanno/main'
include { TABIX_BGZIP as BGZIP_ANNOTATED_VCFS } from '../../../modules/nf-core/tabix/bgzip/main'
include { TABIX_TABIX as TABIX_ENSEMBLVEP } from '../../../modules/nf-core/tabix/tabix/main'
include { BCFTOOLS_CONCAT } from '../../../modules/nf-core/bcftools/concat/main'

include { VCF_ANNOTATE_ENSEMBLVEP } from '../../../subworkflows/local/vcf_annotate_ensemblvep/main'

@@ -31,21 +27,7 @@ workflow VCF_ANNOTATION {
def ch_reports = Channel.empty()
def ch_versions = Channel.empty()

def ch_tabix_input = ch_vcfs
.branch { meta, vcf, tbi=[] ->
tbi: tbi
no_tbi: !tbi
return [ meta, vcf ]
}

TABIX_ENSEMBLVEP(
ch_tabix_input.no_tbi
)
ch_versions = ch_versions.mix(TABIX_ENSEMBLVEP.out.versions.first())

def ch_vep_input = ch_tabix_input.no_tbi
.join(TABIX_ENSEMBLVEP.out.tbi, failOnDuplicate:true, failOnMismatch:true)
.mix(ch_tabix_input.tbi)
def ch_vep_input = ch_vcfs
.map { meta, vcf, tbi ->
[ meta, vcf, tbi, [] ]
}