Right <!channel>, I need an nf-core 'official' lin...
# team-maintainers
j
Right @channel, I need an nf-core 'official' line on something. MultiQC now has the ability to make summaries for you using an AI provider of your choice (Seqera AI by default). You can activate that via some custom config, but I don't think that is very friendly, so for #rnaseq I'm proposing hooking the options up to some params. But I'm getting pushback from colleagues who feel it should just be done via config. So, can I have your vote please? • šŸ”˜ = Give me the params so I can make AI summaries in multiqc by specifying
--enable_multiqc_ai
. • āŒ = Don't overload the params, users can figure out how to supply
--ai
to the MultiQC process via config (and MultiQC docs), and pass environment variables using
env
šŸ”˜ 9
āŒ 4
n
Such a param could be added to the template šŸ˜›
j
It has been suggested. šŸ˜‰
šŸŽ‰ 1
j
Im fine with --enable_multiqc_ai but not in template
It's up to a pipeline developer to add it
If they trust it won't be misleading
m
why not in TEMPLATE?
j
Superfluous
Why that specifically over any other additional multiwc option
j
Let's assume this question doesn't imply template though, I'm more interested in whether it's a useful workflow-level thing
šŸ‘ 1
m
how would you do it via configs?
j
Sure why not for workflow level but I don't think it's essential to push AI slop everywhere just because. My (limited) experience of Seqera AI was poor
I don't want to have to remove it everywhere
j
(note that I have it off by default šŸ˜‰ )
j
Even so
I voted both @Jonathan Manning 😬
šŸ˜€ 1
Fine via Params as long as it's not in template
It would be no different than any other parameter no?
(also makes it less seem like nf-core pushing seqera products
Or just do a vote on #rnaseq if users are interested or not @Jonathan Manning
Gioven AI is generally controversial
j
Yeah, we get lots of questions about how to interpret the reports, thought this might be helpful, but I could ask
m
we get lots of questions about how to interpret the reports
that points towards a need for improved docs imo, not a statistical model to generate a summary
p
My 2 cents: • If it's in one pipeline it may as well be in the template. nf-core is all about consistency, it'll be annoying if it works in some pipelines but not others • This isn't necessarily a Seqera thing, it works with OpenAI and Anthropic too, but I still wary of being too pushy (too soon) • Mostly: because this functionality needs authentication to work, I see it as a user-level thing and not pipeline-level. ā—¦ Even with this new
--enable_multiqc_ai
option switched on, you'd still need to set up a config with the access token env variable. ā—¦ If you have to copy+paste+modify a config snippet anyway, why not just make the whole thing a config snippet? ā—¦ Doing this makes the functionality available for all Nextflow pipelines in one go and means zero additional boilerplate in pipeline code.
Basically, I don't see a huge difference between these two options:
Copy code
export OPENAI_API_KEY=xxx
nextflow run nf-core/rnaseq --enable_multiqc_ai
and:
Copy code
export OPENAI_API_KEY=xxx
export MULTIQC_AI=1
nextflow run nf-core/rnaseq
j
@Phil Ewels remember that neither OPENAI_API_KEY nor MULTIQC_AI will make it through to a process without additional
env
config (which I'm baking into that PR)
p
yup, thinking about that right now. I think having something like this added to the template config would be fine:
Copy code
env {
  // For MultiQC AI summaries
  MULTIQC_AI          = env("MULTIQC_AI")
  SEQERA_ACCESS_TOKEN = env("SEQERA_ACCESS_TOKEN")
  TOWER_ACCESS_TOKEN  = env("TOWER_ACCESS_TOKEN")
  OPENAI_API_KEY      = env("OPENAI_API_KEY")
  ANTHROPIC_API_KEY   = env("ANTHROPIC_API_KEY")
}
this 1
That's still quite a lot less boilerplate to add to pipelines than the PR with the new parameters (that need schema, param logic parsing etc)
j
If it's in one pipeline it may as well be in the template. nf-core is all about consistency, it'll be annoying if it works in some pipelines but not others
You're playing with fire there 😈
This isn't necessarily a Seqera thing, it works with OpenAI and Anthropic too, but I still wary of being too pushy (too soon)
Sorry yes, but it's MultiQC (Seqera Product) + AI, and Seqera are going full in AI so IMO it would come off that way. I agree with @mashehu, better understanding from better docs. Lots of numbers being summarised into random setences doesn't help with that IMO except if you have extremely well documented biological methods on the internet has been trained on. RNAseq likely can produce maybe areasonable summary. I suspect e.g. ancient DNA it will be absolute trash
So having it in template will be too soon IMO (as you said @Phil Ewels
p
don't knock it until you try it
I recommend giving it a go before you make assumptions @James Fellows Yates šŸ˜‰
I thought the same until we built it and I started using it. It does sometimes come out with trash, but it's mostly much better than I would have expected (hence we continued to build it past a proof of concept)
I think 4 extra lines of
env
in the
nextflow.config
is neither here nor there for most pipelines though, and could be skipped by the template when there's no MultiQC
My gut feeling is that this is a good compromise for not getting in the way of people who don't care / vs. making it easy for people to use who want it.. (as no custom Nextflow config needed, only env vars)
But having even just that is not a #hill-to-die-on for me
(people can always use their own Nextflow configs to add the same, it's just a bit of a faff)
j
old man mumble
p
But the vote is swinging heavily towards params currently anyway so I think we're both about to be outvoted šŸ˜…
šŸ˜† 1
j