Can anyone help me with this? I have created a mod...
# modules
a
Can anyone help me with this? I have created a module integrate it on an existing workflow -sarek- at the workflows/main.nf and tried to put it after the vcf_annotate_all step it works like this
Copy code
zc_files = zcatFiles(VCF_ANNOTATE_ALL.out.vcf_ann.map { list -> list[1]}.collect())
It should take the vcf files and zcat it. The problem is that this step doesn't run at the first attempt and I should resume the pipeline to do so. So it is not synchronized with the pipeline. The process work fine and here is a snippet
Copy code
process zcatFiles {
    // Input the channel of .vcf.gz files
    input:
    path gz_files

    // Declare output as the final concatenated .txt file
    output:
    path "ammar.txt"

    // Script to decompress each .vcf.gz file and concatenate
    script:
    """
    zcat ${gz_files.join(' ')} > ammar.txt
    """
}
I would appreciate your help and thank you
m
what is this modules for?
a
I know it may sound ridiulous but I am testing integrating a module inside a pipeline. This one is just a test of using zcat to concat the vcf files and as I said just a test. I finally managed to solve the problem by using the following code
Copy code
zvcf_files = zcatFiles(VCF_ANNOTATE_ALL.out.vcf_ann.map { list -> list[1]}.collect(flat:false))|flatMap