Still struggling with the static types in nf 26. T...
# linting
p
Still struggling with the static types in nf 26. The usual way to define igenomes reference using
fasta = getGenomeAttribute('fasta')
doesn't work anymore, and the only workaround I found is to define in
<http://main.nf|main.nf>
:
Copy code
params.fasta: String  = getGenomeAttribute('fasta')
params.gtf:   String? = getGenomeAttribute('gtf')
...
However, the linting doesn't like it as it says that an invalid value for those params is passed (it expects a string, but nextflow.config doesn't declare them to avoid immutable issues at runtime). Have you faced the same issue? Do you have some solution other than adding these to the ignored params? Thanks!
a
@Nicolas Vannieuwkerke has done quite a bit of work with typed params and the
params.genomes
if I remember correctly. I can’t find the threads now (might well be over in the Nextflow slack) but when he returns he may be able to help here.
❤️ 1
n
The blog post might help: https://nf-co.re/blog/2026/parameter-types I can help when I'm back next week 😛
neon cat spin 1
p
Thanks a lot! For the time beings, I'm following the guide:
Copy code
lint:
  nextflow_config: false # TODO: Remove when tools supports parameter types
  schema_params: false # TODO: Remove when tools supports parameter types
🙌 1
n
Perfect! Once those issues have been fixed in tools you will be able to remove them safely
thankyou 1