mashehu
11/10/2025, 8:28 AMtopics section in the meta.yml only listed the topics used, without extra information describing them (which should be in the json schema for the meta.yml imo), so it would just be
topics:
- versions
instead of
topics:
- versions:
- - process:
type: string
description: The process the versions were collected from
- tool:
type: string
description: The tool name
- version:
type: string
description: The version of the toolNicolas Vannieuwkerke
11/10/2025, 8:44 AMMaxime Garcia
11/10/2025, 8:46 AMMaxime Garcia
11/10/2025, 8:46 AMmashehu
11/10/2025, 8:48 AMNicolas Vannieuwkerke
11/10/2025, 8:49 AMmashehu
11/10/2025, 8:50 AMNicolas Vannieuwkerke
11/10/2025, 8:53 AMMaxime Garcia
11/10/2025, 8:54 AMNicolas Vannieuwkerke
11/10/2025, 8:55 AMSimon Pearce
11/10/2025, 9:15 AMSimon Pearce
11/10/2025, 9:20 AMNicolas Vannieuwkerke
11/10/2025, 9:22 AMPhil Ewels
11/10/2025, 9:28 AMPhil Ewels
11/10/2025, 9:28 AMNicolas Vannieuwkerke
11/10/2025, 9:29 AMSimon Pearce
11/10/2025, 9:34 AMI know some use cases where the version of one tool is used in later logic of the pipeline so I think having the versions as output is just a nice thing to haveCould the topic channel be parsed in that case?
Phil Ewels
11/10/2025, 9:35 AMPhil Ewels
11/10/2025, 9:35 AMMaxime Garcia
11/10/2025, 9:35 AMMaxime Garcia
11/10/2025, 9:36 AMNicolas Vannieuwkerke
11/10/2025, 9:36 AMCould the topic channel be parsed in that case?That seems a bit overkill if we could just output it?
Phil Ewels
11/10/2025, 9:36 AMMaxime Garcia
11/10/2025, 9:38 AMJΓΊlia Mir
11/10/2025, 11:53 AMoutput:
versions_{{ component }}:
- - "${task.process}":
type: string
description: The name of the process
- "{{ component }}":
type: string
description: The name of the tool
- "{{ component }} --version":
type: eval
description: The expression to obtain the version of the tool
topics:
versions:
channel: versions_{{ component }}
to avoid duplicating the explanation in the output section. But this assumes that there will always be an emit πNicolas Vannieuwkerke
11/10/2025, 12:10 PMoutput_channels and make it take a list of emit namesNicolas Vannieuwkerke
11/10/2025, 12:11 PMBen Sherman
11/10/2025, 3:55 PMoutput: and topic:
my two cents is that you should let the module maintainer decide whether they want to include versions in the output. doesn't seem like something that should be mandatory across the boardBen Sherman
11/10/2025, 3:57 PMmeta.yml, I suppose you could have a topic section, but keep in mind that the left-hand side of the >> can be an arbitrary expression...Nicolas Vannieuwkerke
11/10/2025, 3:57 PMSimon Pearce
11/10/2025, 3:58 PM${task.process} part of the eval command, and have that accessible from the topic itself?Ben Sherman
11/10/2025, 3:59 PMmeta.ymlBen Sherman
11/10/2025, 4:03 PMtask.process instead of "${task.process}" , at least once it becomes requiredSimon Pearce
11/10/2025, 4:15 PMat least once it becomes requiredIs that because it won't work with an older version of Nextflow? Is there a version that has topics but wouldn't accept this?
Ben Sherman
11/10/2025, 4:19 PMmashehu
11/10/2025, 4:20 PMSimon Pearce
11/10/2025, 4:21 PMval(task.process) the linting crashes with a traceback and TypeError: LintResult.__init__() missing 1 required positional argument: 'file_path'Simon Pearce
11/10/2025, 4:22 PMSimon Pearce
11/10/2025, 4:24 PMSimon Pearce
11/10/2025, 4:30 PMMaxime Garcia
11/11/2025, 9:48 AMmy two cents is that you should let the module maintainer decide whether they want to include versions in the output. doesn't seem like something that should be mandatory across the boardI disagree, I feel it's a decision that should be taken globally for all nf-core modules
Ben Sherman
11/11/2025, 6:18 PMPhil Ewels
11/11/2025, 10:45 PMMaxime Garcia
11/12/2025, 8:08 AMNicolas Vannieuwkerke
11/12/2025, 8:20 AMNicolas Vannieuwkerke
11/12/2025, 8:20 AMSimon Pearce
11/12/2025, 9:44 AMPhil Ewels
11/12/2025, 10:01 AMPhil Ewels
11/12/2025, 10:01 AM#nf-test-dev in the Nextflow SlackPhil Ewels
11/12/2025, 10:03 AMmashehu
11/14/2025, 3:32 PMoutput:
...
versions_{{ component }}: &versions
- - "${task.process}":
type: string
description: The name of the process
- "{{ component }}":
type: string
description: The name of the tool
- "{{ component }} --version":
type: eval
description: The expression to obtain the version of the tool
topics:
versions: *versions
will make it easier to handle a possible removal of versions_{{ component }} in the futureMaxime Garcia
11/14/2025, 3:34 PMJulian Flesch
11/14/2025, 3:37 PM"{{ component }} --version" won't work in every case, no?mashehu
11/14/2025, 3:37 PMJulian Flesch
11/14/2025, 3:38 PMPhil Ewels
11/14/2025, 3:53 PMmashehu
11/14/2025, 3:58 PMPhil Ewels
11/14/2025, 4:01 PMtopics:
versions: *versionsPhil Ewels
11/14/2025, 4:01 PM&versionsPhil Ewels
11/14/2025, 4:02 PMPhil Ewels
11/14/2025, 4:02 PMPhil Ewels
11/14/2025, 4:02 PMmashehu
11/14/2025, 4:03 PMMaxime Garcia
11/14/2025, 4:04 PMPhil Ewels
11/14/2025, 4:05 PMNicolas Vannieuwkerke
11/14/2025, 4:13 PMSimon Pearce
11/14/2025, 4:44 PMSimon Pearce
11/14/2025, 4:45 PMEdmund
11/17/2025, 7:06 PMmashehu
11/17/2025, 7:08 PM