Skip to content

Commit

Permalink
Merge pull request #520 from maxulysse/dev_annotation
Browse files Browse the repository at this point in the history
Clean up annotation
  • Loading branch information
maxulysse authored Apr 14, 2022
2 parents 5000c94 + 07cc13e commit 3b1543d
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 13 deletions.
2 changes: 1 addition & 1 deletion conf/modules.config
Original file line number Diff line number Diff line change
Expand Up @@ -976,7 +976,7 @@ if (params.tools && (params.tools.contains('vep'))) {

if (params.tools && (params.tools.contains('merge'))) {
process {
withName: 'NFCORE_SAREK:SAREK:ANNOTATE:MERGE_ANNOTATE:ANNOTATION_BGZIPTABIX' {
withName: 'NFCORE_SAREK:SAREK:ANNOTATE:ANNOTATION_MERGE:ANNOTATION_BGZIPTABIX' {
ext.prefix = {"${meta.id}_snpEff_VEP.ann.vcf"}
}
}
Expand Down
14 changes: 7 additions & 7 deletions subworkflows/local/annotate.nf
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
// ANNOTATION
//

include { ANNOTATION_SNPEFF } from '../nf-core/annotation/snpeff/main'
include { ANNOTATION_ENSEMBLVEP as MERGE_ANNOTATE } from '../nf-core/annotation/ensemblvep/main'
include { ANNOTATION_ENSEMBLVEP } from '../nf-core/annotation/ensemblvep/main'
include { ANNOTATION_SNPEFF } from '../nf-core/annotation/snpeff/main'
include { ANNOTATION_ENSEMBLVEP as ANNOTATION_MERGE } from '../nf-core/annotation/ensemblvep/main'
include { ANNOTATION_ENSEMBLVEP } from '../nf-core/annotation/ensemblvep/main'

workflow ANNOTATE {
take:
Expand Down Expand Up @@ -32,11 +32,11 @@ workflow ANNOTATE {

if (tools.contains('merge')) {
vcf_ann_for_merge = ANNOTATION_SNPEFF.out.vcf_tbi.map{ meta, vcf, tbi -> [meta, vcf] }
MERGE_ANNOTATE(vcf_ann_for_merge, vep_genome, vep_species, vep_cache_version, vep_cache)
ANNOTATION_MERGE(vcf_ann_for_merge, vep_genome, vep_species, vep_cache_version, vep_cache)

ch_reports = ch_reports.mix(MERGE_ANNOTATE.out.reports)
ch_vcf_ann = ch_vcf_ann.mix(MERGE_ANNOTATE.out.vcf_tbi)
ch_versions = ch_versions.mix(MERGE_ANNOTATE.out.versions.first())
ch_reports = ch_reports.mix(ANNOTATION_MERGE.out.reports)
ch_vcf_ann = ch_vcf_ann.mix(ANNOTATION_MERGE.out.vcf_tbi)
ch_versions = ch_versions.mix(ANNOTATION_MERGE.out.versions.first())
}

if (tools.contains('vep')) {
Expand Down
6 changes: 5 additions & 1 deletion subworkflows/nf-core/annotation/ensemblvep/main.nf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion subworkflows/nf-core/annotation/snpeff/main.nf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions workflows/sarek.nf
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,7 @@ include { TUMOR_ONLY_VARIANT_CALLING } from '../subworkflows
include { PAIR_VARIANT_CALLING } from '../subworkflows/local/pair_variant_calling'

// Annotation
include { ANNOTATE } from '../subworkflows/local/annotate' addParams(
annotation_cache: params.annotation_cache
)
include { ANNOTATE } from '../subworkflows/local/annotate'

// REPORTING VERSIONS OF SOFTWARE USED
include { CUSTOM_DUMPSOFTWAREVERSIONS } from '../modules/nf-core/modules/custom/dumpsoftwareversions/main'
Expand Down

0 comments on commit 3b1543d

Please sign in to comment.