You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/CONTRIBUTING.md
+14-12Lines changed: 14 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,9 +9,8 @@ Please use the pre-filled template to save time.
9
9
However, don't be put off by this template - other more general issues and suggestions are welcome!
10
10
Contributions to the code are even more welcome ;)
11
11
12
-
:::info
13
-
If you need help using or modifying nf-core/methylseq then the best place to ask is on the nf-core Slack [#methylseq](https://nfcore.slack.com/channels/methylseq) channel ([join our Slack here](https://nf-co.re/join/slack)).
14
-
:::
12
+
> [!NOTE]
13
+
> If you need help using or modifying nf-core/methylseq then the best place to ask is on the nf-core Slack [#methylseq](https://nfcore.slack.com/channels/methylseq) channel ([join our Slack here](https://nf-co.re/join/slack)).
15
14
16
15
## Contribution workflow
17
16
@@ -20,15 +19,18 @@ If you'd like to write some code for nf-core/methylseq, the standard workflow is
20
19
1. Check that there isn't already an issue about your idea in the [nf-core/methylseq issues](https://github.com/nf-core/methylseq/issues) to avoid duplicating work. If there isn't one already, please create one so that others know you're working on this
21
20
2.[Fork](https://help.github.com/en/github/getting-started-with-github/fork-a-repo) the [nf-core/methylseq repository](https://github.com/nf-core/methylseq) to your GitHub account
22
21
3. Make the necessary changes / additions within your forked repository following [Pipeline conventions](#pipeline-contribution-conventions)
23
-
4. Use `nf-core schema build` and add any new parameters to the pipeline JSON schema (requires [nf-core tools](https://github.com/nf-core/tools) >= 1.10).
22
+
4. Use `nf-core pipelines schema build` and add any new parameters to the pipeline JSON schema (requires [nf-core tools](https://github.com/nf-core/tools) >= 1.10).
24
23
5. Submit a Pull Request against the `dev` branch and wait for the code to be reviewed and merged
25
24
26
25
If you're not used to this workflow with git, you can start with some [docs from GitHub](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests) or even their [excellent `git` resources](https://try.github.io/).
27
26
28
27
## Tests
29
28
30
-
You can optionally test your changes by running the pipeline locally. Then it is recommended to use the `debug` profile to
31
-
receive warnings about process selectors and other debug info. Example: `nextflow run . -profile debug,test,docker --outdir <OUTDIR>`.
29
+
You have the option to test your changes locally by running the pipeline. For receiving warnings about process selectors and other `debug` information, it is recommended to use the debug profile. Execute all the tests with the following command:
30
+
31
+
```bash
32
+
nf-test test --profile debug,test,docker --verbose
33
+
```
32
34
33
35
When you create a pull request with changes, [GitHub Actions](https://github.com/features/actions) will run automatic tests.
34
36
Typically, pull-requests are only fully reviewed when these tests are passing, though of course we can help out before then.
@@ -38,7 +40,7 @@ There are typically two types of tests that run:
38
40
### Lint tests
39
41
40
42
`nf-core` has a [set of guidelines](https://nf-co.re/developers/guidelines) which all pipelines must adhere to.
41
-
To enforce these and ensure that all pipelines stay in sync, we have developed a helper tool which runs checks on the pipeline code. This is in the [nf-core/tools repository](https://github.com/nf-core/tools) and once installed can be run locally with the `nf-core lint <pipeline-directory>` command.
43
+
To enforce these and ensure that all pipelines stay in sync, we have developed a helper tool which runs checks on the pipeline code. This is in the [nf-core/tools repository](https://github.com/nf-core/tools) and once installed can be run locally with the `nf-core pipelines lint <pipeline-directory>` command.
42
44
43
45
If any failures or warnings are encountered, please follow the listed URL for more documentation.
44
46
@@ -73,7 +75,7 @@ If you wish to contribute a new step, please use the following coding standards:
73
75
2. Write the process block (see below).
74
76
3. Define the output channel if needed (see below).
75
77
4. Add any new parameters to `nextflow.config` with a default (see below).
76
-
5. Add any new parameters to `nextflow_schema.json` with help text (via the `nf-core schema build` tool).
78
+
5. Add any new parameters to `nextflow_schema.json` with help text (via the `nf-core pipelines schema build` tool).
77
79
6. Add sanity checks and validation for all relevant parameters.
78
80
7. Perform local tests to validate that the new code works as expected.
79
81
8. If applicable, add a new test command in `.github/workflow/ci.yml`.
@@ -84,13 +86,13 @@ If you wish to contribute a new step, please use the following coding standards:
84
86
85
87
Parameters should be initialised / defined with default values in `nextflow.config` under the `params` scope.
86
88
87
-
Once there, use `nf-core schema build` to add to `nextflow_schema.json`.
89
+
Once there, use `nf-core pipelines schema build` to add to `nextflow_schema.json`.
88
90
89
91
### Default processes resource requirements
90
92
91
-
Sensible defaults for process resource requirements (CPUs / memory / time) for a process should be defined in `conf/base.config`. These should generally be specified generic with `withLabel:` selectors so they can be shared across multiple processes/steps of the pipeline. A nf-core standard set of labels that should be followed where possible can be seen in the [nf-core pipeline template](https://github.com/nf-core/tools/blob/master/nf_core/pipeline-template/conf/base.config), which has the default process as a single core-process, and then different levels of multi-core configurations for increasingly large memory requirements defined with standardised labels.
93
+
Sensible defaults for process resource requirements (CPUs / memory / time) for a process should be defined in `conf/base.config`. These should generally be specified generic with `withLabel:` selectors so they can be shared across multiple processes/steps of the pipeline. A nf-core standard set of labels that should be followed where possible can be seen in the [nf-core pipeline template](https://github.com/nf-core/tools/blob/main/nf_core/pipeline-template/conf/base.config), which has the default process as a single core-process, and then different levels of multi-core configurations for increasingly large memory requirements defined with standardised labels.
92
94
93
-
The process resources can be passed on to the tool dynamically within the process with the `${task.cpu}` and `${task.memory}` variables in the `script:` block.
95
+
The process resources can be passed on to the tool dynamically within the process with the `${task.cpus}` and `${task.memory}` variables in the `script:` block.
94
96
95
97
### Naming schemes
96
98
@@ -101,7 +103,7 @@ Please use the following naming schemes, to make it easy to understand what is g
101
103
102
104
### Nextflow version bumping
103
105
104
-
If you are using a new feature from core Nextflow, you may bump the minimum required version of nextflow in the pipeline with: `nf-core bump-version --nextflow . [min-nf-version]`
106
+
If you are using a new feature from core Nextflow, you may bump the minimum required version of nextflow in the pipeline with: `nf-core pipelines bump-version --nextflow . [min-nf-version]`
Copy file name to clipboardExpand all lines: .github/PULL_REQUEST_TEMPLATE.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ Learn more about contributing: [CONTRIBUTING.md](https://github.com/nf-core/meth
17
17
-[ ] If you've fixed a bug or added code that should be tested, add tests!
18
18
-[ ] If you've added a new tool - have you followed the pipeline conventions in the [contribution docs](https://github.com/nf-core/methylseq/tree/master/.github/CONTRIBUTING.md)
19
19
-[ ] If necessary, also make a PR on the nf-core/methylseq _branch_ on the [nf-core/test-datasets](https://github.com/nf-core/test-datasets) repository.
20
-
-[ ] Make sure your code lints (`nf-core lint`).
20
+
-[ ] Make sure your code lints (`nf-core pipelines lint`).
21
21
-[ ] Ensure the test suite passes (`nextflow run . -profile test,docker --outdir <OUTDIR>`).
22
22
-[ ] Check for unexpected warnings in debug mode (`nextflow run . -profile debug,test,docker --outdir <OUTDIR>`).
23
23
-[ ] Usage Documentation in `docs/usage.md` is updated.
0 commit comments