Quentin Blampey
03/06/2026, 11:52 AMsample/subdir/<INDEX>/counts.h5ad) for each sample and each index. Then, I have a process which needs to access all these counts files for each sample. I'm waiting for all the indices before putting them all as an input of the other process, i.e. it will have an input path(counts_files) for a given sample. The problem is, all counts files end up in the current workdir (with the same name) instead of keeping the original hierarchy in sample/subdir/<INDEX>. How to keep this hierarchy? I tried to use stageAs, but couldn't find the right way to make it workDaniel Straub
03/06/2026, 12:28 PMQuentin Blampey
03/06/2026, 1:17 PMDaniel Straub
03/06/2026, 1:24 PMinput:
tuple val(meta), path('input/counts_*.h5ad')
where * will be substituted by the file count, i.e 1,2,3,4,...Quentin Blampey
03/06/2026, 2:16 PMQuentin Blampey
03/06/2026, 2:25 PMpath(count_files, stageAs: "${sample_path}/subdir/{index}/*") where index would be preserved somehow?Quentin Blampey
03/06/2026, 3:07 PMDaniel Straub
03/10/2026, 12:19 PMQuentin Blampey
03/16/2026, 3:27 PM