-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2975 from nf-core/update-api-docs-dev
Update nf-core/tools API docs for dev
- Loading branch information
Showing
11 changed files
with
104 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
sites/docs/src/content/api_reference/dev/module_lint_tests/environment_yml.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
sites/docs/src/content/api_reference/dev/module_lint_tests/meta_yml.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
sites/docs/src/content/api_reference/dev/module_lint_tests/module_tests.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
.../src/content/api_reference/dev/pipeline_lint_tests/local_component_structure.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# modules_structure | ||
|
||
#### `PipelineLint.local_component_structure(){:python}` | ||
|
||
Check that the local modules and subworkflows directories in a pipeline have the correct format: | ||
|
||
```bash | ||
modules/local/TOOL/SUBTOOL | ||
``` | ||
|
||
Prior to nf-core/tools release 3.1.0 the directory structure allowed top-level \*.nf files: | ||
|
||
```bash | ||
modules/local/modules/TOOL_SUBTOOL.nf | ||
``` |
12 changes: 12 additions & 0 deletions
12
...ocs/src/content/api_reference/dev/pipeline_lint_tests/pipeline_if_empty_null.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# pipeline_if_empty_null | ||
|
||
#### `PipelineLint.pipeline_if_empty_null(root_dir=None){:python}` | ||
|
||
Check for ifEmpty(null) | ||
|
||
There are two general cases for workflows to use the channel operator ifEmpty: | ||
: 1. ifEmpty( \[ ] ) to ensure a process executes, for example when an input file is optional (although this can be replaced by toList()). | ||
2\. When a channel should not be empty and throws an error ifEmpty { error … }, e.g. reading from an empty samplesheet. | ||
|
||
There are multiple examples of workflows that inject null objects into channels using ifEmpty(null), which can cause unhandled null pointer exceptions. | ||
This lint test throws warnings for those instances. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
sites/docs/src/content/api_reference/dev/subworkflow_lint_tests/meta_yml.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
...c/content/api_reference/dev/subworkflow_lint_tests/subworkflow_if_empty_null.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# subworkflow_if_empty_null | ||
|
||
#### `SubworkflowLint.subworkflow_if_empty_null(subworkflow){:python}` | ||
|
||
Check for ifEmpty(null) | ||
|
||
There are two general cases for workflows to use the channel operator ifEmpty: | ||
: 1. ifEmpty( \[ ] ) to ensure a process executes, for example when an input file is optional (although this can be replaced by toList()). | ||
2\. When a channel should not be empty and throws an error ifEmpty { error … }, e.g. reading from an empty samplesheet. | ||
|
||
There are multiple examples of workflows that inject null objects into channels using ifEmpty(null), which can cause unhandled null pointer exceptions. | ||
This lint test throws warnings for those instances. |
2 changes: 1 addition & 1 deletion
2
.../docs/src/content/api_reference/dev/subworkflow_lint_tests/subworkflow_tests.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters