meta_yml
SubworkflowLint.meta_yml(subworkflow, allow_missing: bool = False)
Lint a meta.yml file
The lint test checks that the subworkflow has
a meta.yml file and that it follows the
JSON schema defined in the subworkflows/yaml-schema.json
file in the nf-core/modules repository.
In addition it checks that the subworkflow name
and subworkflow input is consistent between the
meta.yml and the main.nf.
Checks that all input and output channels are specified in meta.yml.
Checks that all included components in main.nf are specified in meta.yml.
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 at https://raw.githubusercontent.com/nf-core/subworkflows/master/modules/environment-schema.json.meta_input: All input channels declared inmain.nfmust be listed under theinput:key inmeta.yml.meta_output: All output channels declared inmain.nfmust be listed under theoutput:key inmeta.yml.meta_name: Thenamefield inmeta.ymlmust match the workflow name declared inmain.nf.meta_include: All modules and subworkflows included inmain.nfmust be listed under thecomponents:key inmeta.yml.meta_modules_deprecated: The deprecatedmodules:section must not be present inmeta.yml; usecomponents:instead.