Skip to content

Commit

Permalink
add snpeff sw and properly import it
Browse files Browse the repository at this point in the history
  • Loading branch information
FriederikeHanssen committed Dec 8, 2021
1 parent fc89462 commit 06d100b
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 36 deletions.
24 changes: 12 additions & 12 deletions subworkflows/local/annotate.nf
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
// ANNOTATION
//

include { SNPEFF_ANNOTATE } from '../nf-core/snpeff_annotate'
include { ANNOTATION_ENSEMBLVEP as MERGE_ANNOTATE } from '../nf-core/annotation_ensembl/main'
include { ANNOTATION_ENSEMBLVEP } from '../nf-core/annotation_ensembl/main'
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'

workflow ANNOTATE {
take:
Expand All @@ -23,15 +23,15 @@ workflow ANNOTATE {
ch_versions = Channel.empty()

if (tools.contains('merge') || tools.contains('snpeff')) {
SNPEFF_ANNOTATE(vcf, snpeff_db, snpeff_cache)
ANNOTATION_SNPEFF(vcf, snpeff_db, snpeff_cache)

ch_reports = ch_reports.mix(SNPEFF_ANNOTATE.out.reports)
ch_vcf_ann = ch_vcf_ann.mix(SNPEFF_ANNOTATE.out.vcf_tbi)
ch_versions = ch_versions.mix(SNPEFF_ANNOTATE.out.versions.first())
ch_reports = ch_reports.mix(ANNOTATION_SNPEFF.out.reports)
ch_vcf_ann = ch_vcf_ann.mix(ANNOTATION_SNPEFF.out.vcf_tbi)
ch_versions = ch_versions.mix(ANNOTATION_SNPEFF.out.versions.first())
}

if (tools.contains('merge')) {
vcf_ann_for_merge = SNPEFF_ANNOTATE.out.vcf_tbi.map{ meta, vcf, tbi -> [meta, vcf] }
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)

ch_reports = ch_reports.mix(MERGE_ANNOTATE.out.reports)
Expand All @@ -40,11 +40,11 @@ workflow ANNOTATE {
}

if (tools.contains('vep')) {
ENSEMBLVEP_ANNOTATE(vcf, vep_genome, vep_species, vep_cache_version, vep_cache)
ANNOTATION_ENSEMBLVEP(vcf, vep_genome, vep_species, vep_cache_version, vep_cache)

ch_reports = ch_reports.mix(ENSEMBLVEP_ANNOTATE.out.reports)
ch_vcf_ann = ch_vcf_ann.mix(ENSEMBLVEP_ANNOTATE.out.vcf_tbi)
ch_versions = ch_versions.mix(ENSEMBLVEP_ANNOTATE.out.versions.first())
ch_reports = ch_reports.mix(ANNOTATION_ENSEMBLVEP.out.reports)
ch_vcf_ann = ch_vcf_ann.mix(ANNOTATION_ENSEMBLVEP.out.vcf_tbi)
ch_versions = ch_versions.mix(ANNOTATION_ENSEMBLVEP.out.versions.first())
}

emit:
Expand Down
4 changes: 2 additions & 2 deletions subworkflows/nf-core/annotation_ensemblvep/main.nf

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

23 changes: 23 additions & 0 deletions subworkflows/nf-core/annotation_snpeff/main.nf

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

29 changes: 29 additions & 0 deletions subworkflows/nf-core/annotation_snpeff/meta.yml

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

22 changes: 0 additions & 22 deletions subworkflows/nf-core/snpeff_annotate.nf

This file was deleted.

0 comments on commit 06d100b

Please sign in to comment.