Ammar Yasser
11/13/2024, 3:52 PMzc_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
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 youMaxime Garcia
11/14/2024, 1:21 PMAmmar Yasser
11/15/2024, 3:55 PMzvcf_files = zcatFiles(VCF_ANNOTATE_ALL.out.vcf_ann.map { list -> list[1]}.collect(flat:false))|flatMap