Hi, not sure if this is the best forum but I wante...
# tools
r
Hi, not sure if this is the best forum but I wanted to suggest an addition to the nfcore template... (the layout of output files) As we are starting to run more production runs with
nfcore/sarek
we find quite lacking that there is no copy of the input sample sheet onto the pipeline_info directory. Doesn't quite make sense that all the input parameters get captured so a workflow could be launched from that information but the input files themselves don't get recorded. Recording this information facilitates it when we have to go back to an old workflow to determine exactly what was run.
m
I like that idea
a
This used to happen with the old
SAMPLESHEET_INPUT
process. Now that there is no actual process for handling the samplesheet for most modern pipelines that doesn’t get used. You don’t really want a process for this at all now so it would probably just be a
Channel.fromPath(params.input).collectFile("pipeline_info/samplesheet.${file(params.input).extension}")
or something?
this 1
m
we could even use the
params.trace_report_suffix
Copy code
Channel.fromPath(params.input).collectFile("pipeline_info/samplesheet/${file(params.input).baseName_${params.trace_report_suffix}${file(params.input).extension}")
or something
My main issue is if people use a glob with the samplesheet
a
Can you use a glob?
Wouldn't that be expanded by the shell before you see it inside nextflow
m
in between quotes it should be fine
I think I tried it years ago
I haven't tried in a while to be honest
not sure how it'll behave with all our improvments over the years
and it's an unusual usage
a
The template it just that tbh, there are lots of pipelines that it doesn't "fit" for. So I think the question is do more pipelines than not benefit from this addition? If yes, put it in, if not then individual pipelines can add it
➕ 1