Jim Downie
03/19/2025, 1:09 PM-- <http://main.nf|main.nf>
output:
tuple val(meta) , path("*${input_mat}.hap.ktab*", hidden: true), emit: mathap_ktab
tuple val(meta2), path("*${input_pat}.hap.ktab*", hidden: true), emit: pathap_ktab
path "versions.yml" , emit: versions
-- linter error
Module meta.yml does not match <http://main.nf|main.nf>. Outputs should contain: {'mathap_ktab': ['meta', '${input_mat}.hap.ktab", hidden: true'], 'pathap_ktab': ['meta2', '${input_pat}.hap.ktab", hidden: true', 'ap_ktab'], 'versions': ['versions.yml']}
Is this a bug?
https://github.com/nf-core/modules/pull/7847#issuecomment-2736500269Simon Pearce
03/19/2025, 2:20 PMSimon Pearce
03/19/2025, 2:21 PMSimon Pearce
03/19/2025, 2:22 PMArthur
03/19/2025, 2:35 PMJim Downie
03/19/2025, 2:36 PM${prefix}.ktab and .${prefix}.ktab.1Jim Downie
03/19/2025, 2:36 PMpathap_ktab': ['meta2', '${input_pat}.hap.ktab", hidden: true', 'ap_ktab'] - there's an extra thing on the end there that shouldn't existArthur
03/19/2025, 2:47 PMpattern which makes no sense
• " but not a leading one, and it's not entirely obvious to me whether they should have the hidden part in the key like they doJim Downie
03/19/2025, 2:50 PMnf-core modules lint --fixArthur
03/19/2025, 2:52 PMArthur
03/19/2025, 2:53 PMpath (or val/tuple) in your emitted name, it breaks everythingJim Downie
03/19/2025, 2:54 PMArthur
03/19/2025, 2:56 PMhidden part too. Ideally we should rewrite nf-core linting to have a proper lexer and parser for the nextflow grammar such that we can better access the correct parts of the syntax. But it's possibly a lot of work and quite a bit slower than the current regex solution.Jim Downie
03/19/2025, 2:56 PMArthur
03/19/2025, 2:57 PMJim Downie
03/19/2025, 3:01 PMSimon Pearce
03/19/2025, 3:03 PMpath( or path ?mashehu
03/20/2025, 8:45 AMmashehu
03/20/2025, 8:45 AM