Hi, At my institution we use nf-core tools to wri...
# random
j
Hi, At my institution we use nf-core tools to write Nextflow pipelines, but these are tailored towards specific viruses and probably not suited as official nf-core pipelines. But since we use nf-core tools, that by default creates many of the files used for the nice web interface that accompanies the official nf-core pipelines (like the parameter schema), I was wondering if it's possible to have a similar web interface for our local nf-core pipelines? For example through github pages on the repo of the pipeline?
i
It is definitely possible, Sanger TOL has its own website for their pipelines. You can ask @mashehu and other folks at #website about how they parse the pipeline files, or just borrow some code from the repo if you're brave enough. Either option requires intermediate JavaScript skills.
this 1
m
The code is mainly here (for the pipeline pages) and that for the schema rendering here, but yeah, it will take some JavaScript skills to cherry pick all the required components, styles and layouts into a new Astro/Svelte/Bootstrap page for a single pipeline.
this 1
j
Awesome. Thanks for pointing to these resources. I'll take a look 🙂
p
You can do this using the nf-core website itself if you're happy to
From the CLI it's
nf-core launch <my pipeline>
and it will use the nf-core website launch GUI for your custom pipeline
Note that this is the old PHP website ☝🏻 so things may change in the (near) future
@mashehu is currently rewriting the schema builder to run on a local webserver from #tools and we could certainly look into something similar for the launch form, if running from a local CLI would be acceptable.
Also building a textual interface, like for
nf-core pipelines create
would be an obvious win that I've been eyeing up for a while - also terminal, but a nice clickable graphical TUI
And of course any pipeline with a nextflow schema should give nice user-friendly launch forms on Seqera Platform 🙂
j
Nice! The reason I ask is because we need to document our pipelines. And since we already use nf-core tools that creates all these useful files, maybe we could exploit these to create documentation. Maybe we can connect to readthedocs?
p
That was added for exactly this purpose
Note that this output is entirely static though, documentation is quite different to an interactive launch form
❤️ 1