nf-core/tools API documentation
Automated documentation for nf-core/tools (2.11.1)
files_exist
PipelineLint.files_exist()
Checks a given pipeline directory for required files.
Iterates through the pipeline’s directory content and checks that specified files are either present or absent, as required.
This test raises an AssertionError if neither nextflow.config or main.nf are found.
If these files are not found then this cannot be a Nextflow pipeline and something has gone badly wrong.
All lint tests are stopped immediately with a critical error message.
Files that must be present:
.gitattributes.gitignore.nf-core.yml.editorconfig.prettierignore.prettierrc.yml.github/.dockstore.yml.github/CONTRIBUTING.md.github/ISSUE_TEMPLATE/bug_report.yml.github/ISSUE_TEMPLATE/config.yml.github/ISSUE_TEMPLATE/feature_request.yml.github/PULL_REQUEST_TEMPLATE.md.github/workflows/branch.yml.github/workflows/ci.yml.github/workflows/linting_comment.yml.github/workflows/linting.yml[LICENSE, LICENSE.md, LICENCE, LICENCE.md] # NB: British / American spellingassets/email_template.htmlassets/email_template.txtassets/nf-core-PIPELINE_logo_light.pngassets/sendmail_template.txtconf/modules.configconf/test.configconf/test_full.configCHANGELOG.mdCITATIONS.mdCODE_OF_CONDUCT.mddocs/images/nf-core-PIPELINE_logo_light.pngdocs/images/nf-core-PIPELINE_logo_dark.pngdocs/output.mddocs/README.mddocs/usage.mdlib/nfcore_external_java_deps.jarlib/NfcoreTemplate.groovylib/Utils.groovylib/WorkflowMain.groovynextflow_schema.jsonnextflow.configREADME.mdFiles that should be present:
main.nfassets/multiqc_config.ymlconf/base.configconf/igenomes.config.github/workflows/awstest.yml.github/workflows/awsfulltest.ymllib/WorkflowPIPELINE.groovypyproject.tomlFiles that must not be present, due to being renamed or removed in the template:
Singularityparameters.settings.jsonpipeline_template.yml # saving information in .nf-core.yml.nf-core.yaml # NB: Should be yml, not yamlbin/markdown_to_html.rconf/aws.config.github/workflows/push_dockerhub.yml.github/ISSUE_TEMPLATE/bug_report.md.github/ISSUE_TEMPLATE/feature_request.mddocs/images/nf-core-PIPELINE_logo.png.markdownlint.yml.yamllint.ymllib/Checks.groovylib/Completion.groovylib/Workflow.groovyFiles that should not be present:
.travis.ymlYou can configure the nf-core lint tests to ignore any of these checks by setting
the files_exist key as follows in your .nf-core.yml config file. For example:
lint: : files_exist: : - assets/multiqc_config.yml