Hi there,
I created a channel using:
mutation_burden.out.mutation_burden_txt | collect(flat: false) | transpose()| buffer(skip: 1)| map { it[0] } | set { mutation_burden_collected_files}
The file names are same. I’ve following collected file channel as:
[mnt/data1/users/sanjeev/nextflow/meta_structure/work/ab/7bb0748ddba567583c4236c0d33d1f/mutation_burden.txt, /mnt/data1/users/sanjeev/nextflow/meta_structure/work/88/47dba5991e1192651aa9aec4f7b6ef/mutation_burden.txt, /mnt/data1/users/sanjeev/nextflow/meta_structure/work/56/f9becc216df3f672527dea1170f756/mutation_burden.txt]
I pass then into process:
input:
path(mut_files, stageAs: 'temp_merge_mut_burden/*')
When I pass this channel into a process, I get following error:
Error:
ERROR ~ Error executing process > ‘wes:merge_mutation_burden (1)’
Caused by:
Processwes:merge_mutation_burden
input file name collision – There are multiple input files for each of the following file names: temp_merge_mut_burden/mutation_burden.txtTip: you can replicate the issue by changing to the process work dir and entering the command
bash .command.run
– Check ‘.nextflow.log’ file for details
Dummy channel:
ch_mutation=channel.of([[batch:"SEMA-MM-003", timepoint:"MM-0256-T-03", tissue:"normal", sequencing_type:"wes"],
file( "HRDresults.txt")],
[[batch:"SEMA-MM-004", timepoint:"MM-4607-T-01", tissue:"normal", sequencing_type:"wes"],
file("HRDresults.txt")],
[[batch:"SEMA-MM-002", timepoint:"MM-2692-T-01", tissue:"normal", sequencing_type:"wes"],
file("HRDresults.txt")]
)
ch_mutation | collect(flat: false) | transpose()| buffer(skip: 1)| map { it[0] } | view
I cannot change the output file name HRDresults.txt
as it’s hard-coded.
How do I resolve this when taking them as an input?