In nextflow I have processes that accept a number of files from a channel one at a time.
In my settings I set the publish dir to be based on the hash or task.inputs which works fine for the first run of the workflow. However it seems these vars evaluate to null when using the resume option and so I only get one dir in my published dir rather than the multiple ones expected.
The initial run all results are published as expected, with a dir for each time the process runs with the differnt input. But for subsequant runs using resume it seems that the var task.hash evaluates to null and so each of the files will over write the output into the ânullâ dir and I only get one output.
It does, indeed, but I was wondering how much information these folder names give you about the runs. Are you sure you donât want to add a timestamp or something like that? When you check the folders, how do you know which folder is the one youâre looking for?
I manually set the outdirr for each run I do, then I can see the output of each process. I think I can also do something more clever with dynamic tags based on inputs.
Another good suggestion from @robsyme is to add the runName to the folder name. You gotta see whatâs useful for you. As long as itâs clear from what run those outputs came from, I think it should be OK