Hello! I am looking into adding `versions.yaml` f...
# subworkflows
a
Hello! I am looking into adding
versions.yaml
from different processes, and combining them together with
params
into a table in the final
multiqc
report. I am trying to make this more FAIR and I am wondering if anyone already has done something similar and/or is using a certain standardised template for this? I was looking into RO-crate , but I couldn't really find a template for versions & params?
p
We already support RO-Crate (there's a workflow crate for pipelines, and the nf-prov plugin does run crates)
šŸ‘€ 1
But as you say, RO-Crate doesn't really handle software versions explicitly.
m
Currently the way we do it is in the TEMPLATE this to collect params and send to MultiQC • https://github.com/nf-core/tools/blob/dev/nf_core/pipeline-template/workflows/pipeline.nf#L78 this for the versions: • https://github.com/nf-core/tools/blob/dev/nf_core/pipeline-template/workflows/pipeline.nf#L53-L59
p
I think that there is some kind of versions output file published by the pipeline as well, right @Maxime Garcia? šŸ¤”
m
yes indeed
šŸŽ‰ 1
I was getting there
p
Sorry šŸ˜… homer disappear
šŸ˜† 1
cowboyhat tip 1
m
That is actually the yml file passed to multiQC
so I'd say that our standard
there is some on-going efforts into porting some of that logic in #nf-core-utils https://github.com/nf-core/nf-core-utils
I played around with topic channels to handle versions, and even if there is some changes in the way the versions are handled internally. The end product
nf_core_pipeline_software_mqc_versions.yml
file is conserved as is
āœ… 1
So what's your goal here @Alem Gusinac?
j
I think that there is some kind of versions output file published by the pipeline as well, right @Maxime Garcia?
For clarity: it's in
${outdir}/pipeline_info_nf_core_pipeline+_software_mqc_versions.yml
party this 1
šŸ™šŸ» 1
šŸ™ 1
a
Well that's cool! I did something similar but I am happy to see that there is already work put into it and this can be found in the
tools
repo. I didn't really know where to look! So the goal is basically using a more standard template, so I don't end up with a different incompatible template @Maxime Garcia
Are you also planning to include citations and commands to the report, so people can easily take the command line options and reproduce a single process?
m
We are working on some nice concepts to simplify this whole process within #nf-core-utils once again
šŸ‘ 2
cc @Edmund
p
@Alem Gusinac this is all already inside the nf-core pipeline template
so if you use that for your pipeline, and running MultiQC, you should be getting all of this already
commands are already logged by nextflow in the execution report / other places
if you're new to the nf-core pipeline template, check the docs here
(NB that the nf-core template can be used for non-nf-core pipelines as well, if you run
nf-core pipelines create
you'll get an interactive walkthrough thing in your terminal which takes you through it all)
party this 1
a
Nice thanks for the info šŸ™‚
šŸ‘šŸ» 1