meta_yml
ModuleLint.meta_yml(module: NFCoreComponent, allow_missing: bool = False) → None
Lint a meta.yml file
Checks that the module has a meta.yml file, that it is valid according
to the nf-core JSON schema, and that its contents are consistent with
main.nf.
The following checks are performed:
meta_yml_exists: Themeta.ymlfile must exist.meta_yml_valid: Themeta.ymlmust be valid according to the JSON schema defined inmodules/meta-schema.jsonin the nf-core/modules repository.meta_name: Thenamefield inmeta.ymlmust match (case-insensitive) the process name declared inmain.nf.meta_input: Ifmain.nfdeclares inputs, they must be listed under theinput:key inmeta.yml.correct_meta_inputs: The inputs listed inmeta.ymlmust exactly match those parsed frommain.nf. Runnf-core modules lint --fixto auto-correct.meta_output: Ifmain.nfdeclares outputs, they must be listed under theoutput:key inmeta.yml.correct_meta_outputs: The outputs listed inmeta.ymlmust exactly match those parsed frommain.nf. Runnf-core modules lint --fixto auto-correct.has_meta_topics: Ifmain.nfdeclares topics,meta.ymlmust also contain a non-emptytopics:block. Runnf-core modules lint --fixto auto-correct.correct_meta_topics: The topics listed inmeta.ymlmust exactly match those parsed frommain.nf. Runnf-core modules lint --fixto auto-correct.
If the module has inputs or outputs, they are expected to be formatted as:
tuple val(foo) path(bar)
val foo
path fooor permutations of the above.