Hi everyone, I have a question. I want to be able ...
# nostupidquestions
l
Hi everyone, I have a question. I want to be able to annotate with VEP a single VCF file inside of my nextflow pipeline. I am quite new to nextflow, and am not sure whether to use the nf-core Sarek pipeline, the subworkflow vcf_annotate_ensemblvep or the module ensemblvep_vep. Can you provide me feedback when to use what?
m
if you intend to make a new pipeline, I would go for the subworkflow vcf_annotate_ensemblvep
l
And what is the benefit of the subworkflow? It just passes the arguments to the ensemblvep_vep module right?
m
and tabix index the output
but yeah, it's a very small one
l
I see. With the subworkflow and the module I run into the same problem: the process is never executed. For example with the following command, VCF_ANNOTATE_ENSEMBLVEP:ENSEMBLVEP_VEP is schedules but never started and then my pipeline just terminates without any error.
vep_results = VCF_ANNOTATE_ENSEMBLVEP(
vcf_file.map { vcf -> tuple([id: "vcf"], vcf, [])}, //ch_vcf
[[id: 'null'], []], //ch_fasta
params.ensemblvep_genome,
params.ensemblvep_species,
params.ensemblvep_cache_version,
ch_cache = tuple([id: "cache"], file(params.ensemblvep_cache)), //ch_cache
Channel.empty() // ch_extra_files
)
m
try something like this instead:
Copy code
VCF_ANNOTATE_ENSEMBLVEP(
    vcf_file.map { vcf -> tuple([id: "vcf"], vcf, [])}, //ch_vcf
            [[id: 'null'], []], //ch_fasta
            params.ensemblvep_genome,
            params.ensemblvep_species,
            params.ensemblvep_cache_version,
            ch_cache = tuple([id: "cache"], file(params.ensemblvep_cache)), //ch_cache
            Channel.empty() // ch_extra_files
    )

vep_results = VCF_ANNOTATE_ENSEMBLVEP.out
l
Again it is not starting:
Copy code
nextflow run main.nf -profile slurm -resume
Nextflow 25.04.7 is available - Please consider updating your version to it

 N E X T F L O W   ~  version 25.04.6

Launching `main.nf` [sharp_hypatia] DSL2 - revision: c8168b3908

[01/7bd93a] normalize (batch 5 files)              [100%] 6 of 6, cached: 6 ✔
[4d/21d3f3] generate_vcf                           [100%] 1 of 1, cached: 1 ✔
[-        ] VCF_ANNOTATE_ENSEMBLVEP:ENSEMBLVEP_VEP -
[-        ] VCF_ANNOTATE_ENSEMBLVEP:TABIX_TABIX    -
[8f/a391fd] manhattan_qq (batch 5 files)           [100%] 6 of 6, cached: 6 ✔
[36/e52248] extract_chroms                         [100%] 1 of 1, cached: 1 ✔
[6c/1bb0a9] generate_chrom_bgz (16)                [100%] 23 of 23, cached: 23 ✔
[38/437bb7] generate_top_hits (top_hits)           [100%] 1 of 1, cached: 1 ✔