Skip to content

Commit 91d23c1

Browse files
authored
Merge pull request #8 from seqeralabs/dev
Release v0.1.0 draft
2 parents b3b9239 + 3315523 commit 91d23c1

File tree

109 files changed

+3991
-3481
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+3991
-3481
lines changed

Diff for: .editorconfig

+22-7
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,35 @@ trim_trailing_whitespace = true
88
indent_size = 4
99
indent_style = space
1010

11-
[*.{yml,yaml}]
11+
[*.{md,yml,yaml,html,css,scss,js}]
1212
indent_size = 2
1313

14-
[*.json]
15-
insert_final_newline = unset
16-
1714
# These files are edited and tested upstream in nf-core/modules
1815
[/modules/nf-core/**]
1916
charset = unset
2017
end_of_line = unset
2118
insert_final_newline = unset
2219
trim_trailing_whitespace = unset
2320
indent_style = unset
24-
indent_size = unset
21+
[/subworkflows/nf-core/**]
22+
charset = unset
23+
end_of_line = unset
24+
insert_final_newline = unset
25+
trim_trailing_whitespace = unset
26+
indent_style = unset
2527

26-
[/assets/email*]
27-
indent_size = unset
28+
# ignore Readme
29+
[README.md]
30+
indent_style = unset
31+
32+
# ignore python and markdown
33+
[*.{py,md}]
34+
indent_style = unset
35+
36+
# ignore ro-crate metadata files
37+
[**/ro-crate-metadata.json]
38+
insert_final_newline = unset
39+
40+
[LICENSE.txt]
41+
indent_style = unset
42+
trim_trailing_whitespace = unset

Diff for: .gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
*.config linguist-language=nextflow
2+
*.nf.test linguist-language=nextflow
23
modules/nf-core/** linguist-generated
34
subworkflows/nf-core/** linguist-generated

Diff for: .github/CONTRIBUTING.md

+28-29
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,34 @@
1-
# nf-core/dragen: Contributing Guidelines
1+
# `seqeralabs/nf-dragen`: Contributing Guidelines
22

33
Hi there!
4-
Many thanks for taking an interest in improving nf-core/dragen.
4+
Many thanks for taking an interest in improving seqeralabs/nf-dragen.
55

6-
We try to manage the required tasks for nf-core/dragen using GitHub issues, you probably came to this page when creating one.
6+
We try to manage the required tasks for seqeralabs/nf-dragen using GitHub issues, you probably came to this page when creating one.
77
Please use the pre-filled template to save time.
88

99
However, don't be put off by this template - other more general issues and suggestions are welcome!
1010
Contributions to the code are even more welcome ;)
1111

12-
> If you need help using or modifying nf-core/dragen then the best place to ask is on the nf-core Slack [#dragen](https://nfcore.slack.com/channels/dragen) channel ([join our Slack here](https://nf-co.re/join/slack)).
13-
1412
## Contribution workflow
1513

16-
If you'd like to write some code for nf-core/dragen, the standard workflow is as follows:
14+
If you'd like to write some code for seqeralabs/nf-dragen, the standard workflow is as follows:
1715

18-
1. Check that there isn't already an issue about your idea in the [nf-core/dragen issues](https://github.com/nf-core/dragen/issues) to avoid duplicating work
19-
* If there isn't one already, please create one so that others know you're working on this
20-
2. [Fork](https://help.github.com/en/github/getting-started-with-github/fork-a-repo) the [nf-core/dragen repository](https://github.com/nf-core/dragen) to your GitHub account
16+
1. Check that there isn't already an issue about your idea in the [seqeralabs/nf-dragen issues](https://github.com/seqeralabs/nf-dragen/issues) to avoid duplicating work. If there isn't one already, please create one so that others know you're working on this
17+
2. [Fork](https://help.github.com/en/github/getting-started-with-github/fork-a-repo) the [seqeralabs/nf-dragen repository](https://github.com/seqeralabs/nf-dragen) to your GitHub account
2118
3. Make the necessary changes / additions within your forked repository following [Pipeline conventions](#pipeline-contribution-conventions)
22-
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).
19+
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).
2320
5. Submit a Pull Request against the `dev` branch and wait for the code to be reviewed and merged
2421

2522
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/).
2623

2724
## Tests
2825

26+
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:
27+
28+
```bash
29+
nf-test test --profile debug,test,docker --verbose
30+
```
31+
2932
When you create a pull request with changes, [GitHub Actions](https://github.com/features/actions) will run automatic tests.
3033
Typically, pull-requests are only fully reviewed when these tests are passing, though of course we can help out before then.
3134

@@ -34,7 +37,7 @@ There are typically two types of tests that run:
3437
### Lint tests
3538

3639
`nf-core` has a [set of guidelines](https://nf-co.re/developers/guidelines) which all pipelines must adhere to.
37-
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.
40+
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.
3841

3942
If any failures or warnings are encountered, please follow the listed URL for more documentation.
4043

@@ -49,55 +52,51 @@ These tests are run both with the latest available version of `Nextflow` and als
4952

5053
:warning: Only in the unlikely and regretful event of a release happening with a bug.
5154

52-
* On your own fork, make a new branch `patch` based on `upstream/master`.
53-
* Fix the bug, and bump version (X.Y.Z+1).
54-
* A PR should be made on `master` from patch to directly this particular bug.
55-
56-
## Getting help
57-
58-
For further information/help, please consult the [nf-core/dragen documentation](https://nf-co.re/dragen/usage) and don't hesitate to get in touch on the nf-core Slack [#dragen](https://nfcore.slack.com/channels/dragen) channel ([join our Slack here](https://nf-co.re/join/slack)).
55+
- On your own fork, make a new branch `patch` based on `upstream/main` or `upstream/master`.
56+
- Fix the bug, and bump version (X.Y.Z+1).
57+
- Open a pull-request from `patch` to `main`/`master` with the changes.
5958

6059
## Pipeline contribution conventions
6160

62-
To make the nf-core/dragen code and processing logic more understandable for new contributors and to ensure quality, we semi-standardise the way the code and other contributions are written.
61+
To make the `seqeralabs/nf-dragen` code and processing logic more understandable for new contributors and to ensure quality, we semi-standardise the way the code and other contributions are written.
6362

6463
### Adding a new step
6564

6665
If you wish to contribute a new step, please use the following coding standards:
6766

68-
1. Define the corresponding input channel into your new process from the expected previous process channel
67+
1. Define the corresponding input channel into your new process from the expected previous process channel.
6968
2. Write the process block (see below).
7069
3. Define the output channel if needed (see below).
7170
4. Add any new parameters to `nextflow.config` with a default (see below).
72-
5. Add any new parameters to `nextflow_schema.json` with help text (via the `nf-core schema build` tool).
71+
5. Add any new parameters to `nextflow_schema.json` with help text (via the `nf-core pipelines schema build` tool).
7372
6. Add sanity checks and validation for all relevant parameters.
7473
7. Perform local tests to validate that the new code works as expected.
7574
8. If applicable, add a new test command in `.github/workflow/ci.yml`.
76-
9. Update MultiQC config `assets/multiqc_config.yaml` so relevant suffixes, file name clean up and module plots are in the appropriate order. If applicable, add a [MultiQC](https://https://multiqc.info/) module.
75+
9. Update MultiQC config `assets/multiqc_config.yml` so relevant suffixes, file name clean up and module plots are in the appropriate order. If applicable, add a [MultiQC](https://https://multiqc.info/) module.
7776
10. Add a description of the output files and if relevant any appropriate images from the MultiQC report to `docs/output.md`.
7877

7978
### Default values
8079

81-
Parameters should be initialised / defined with default values in `nextflow.config` under the `params` scope.
80+
Parameters should be initialised / defined with default values within the `params` scope in `nextflow.config`.
8281

83-
Once there, use `nf-core schema build` to add to `nextflow_schema.json`.
82+
Once there, use `nf-core pipelines schema build` to add to `nextflow_schema.json`.
8483

8584
### Default processes resource requirements
8685

87-
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.
86+
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.
8887

89-
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.
88+
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.
9089

9190
### Naming schemes
9291

9392
Please use the following naming schemes, to make it easy to understand what is going where.
9493

95-
* initial process channel: `ch_output_from_<process>`
96-
* intermediate and terminal channels: `ch_<previousprocess>_for_<nextprocess>`
94+
- initial process channel: `ch_output_from_<process>`
95+
- intermediate and terminal channels: `ch_<previousprocess>_for_<nextprocess>`
9796

9897
### Nextflow version bumping
9998

100-
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]`
99+
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]`
101100

102101
### Images and figures
103102

Diff for: .github/ISSUE_TEMPLATE/bug_report.yml

+3-13
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,7 @@
1-
21
name: Bug report
32
description: Report something that is broken or incorrect
43
labels: bug
54
body:
6-
7-
- type: markdown
8-
attributes:
9-
value: |
10-
Before you post this issue, please check the documentation:
11-
12-
- [nf-core website: troubleshooting](https://nf-co.re/usage/troubleshooting)
13-
- [nf-core/dragen pipeline documentation](https://nf-co.re/dragen/usage)
14-
155
- type: textarea
166
id: description
177
attributes:
@@ -44,9 +34,9 @@ body:
4434
attributes:
4535
label: System information
4636
description: |
47-
* Nextflow version _(eg. 21.10.3)_
37+
* Nextflow version _(eg. 23.04.0)_
4838
* Hardware _(eg. HPC, Desktop, Cloud)_
4939
* Executor _(eg. slurm, local, awsbatch)_
50-
* Container engine: _(e.g. Docker, Singularity, Conda, Podman, Shifter or Charliecloud)_
40+
* Container engine: _(e.g. Docker, Singularity, Conda, Podman, Shifter, Charliecloud, or Apptainer)_
5141
* OS _(eg. CentOS Linux, macOS, Linux Mint)_
52-
* Version of nf-core/dragen _(eg. 1.1, 1.5, 1.8.2)_
42+
* Version of seqeralabs/dragen _(eg. 1.1, 1.5, 1.8.2)_

Diff for: .github/ISSUE_TEMPLATE/config.yml

-7
This file was deleted.

Diff for: .github/ISSUE_TEMPLATE/feature_request.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Feature request
2-
description: Suggest an idea for the nf-core/dragen pipeline
2+
description: Suggest an idea for the seqeralabs/nf-dragen pipeline
33
labels: enhancement
44
body:
55
- type: textarea

Diff for: .github/PULL_REQUEST_TEMPLATE.md

+7-8
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,24 @@
11
<!--
2-
# nf-core/dragen pull request
2+
# seqeralabs/dragen pull request
33
4-
Many thanks for contributing to nf-core/dragen!
4+
Many thanks for contributing to seqeralabs/dragen!
55
66
Please fill in the appropriate checklist below (delete whatever is not relevant).
77
These are the most common things requested on pull requests (PRs).
88
99
Remember that PRs should be made against the dev branch, unless you're preparing a pipeline release.
1010
11-
Learn more about contributing: [CONTRIBUTING.md](https://github.com/nf-core/dragen/tree/master/.github/CONTRIBUTING.md)
11+
Learn more about contributing: [CONTRIBUTING.md](https://github.com/seqeralabs/dragen/tree/master/.github/CONTRIBUTING.md)
1212
-->
13-
<!-- markdownlint-disable ul-indent -->
1413

1514
## PR checklist
1615

1716
- [ ] This comment contains a description of changes (with reason).
1817
- [ ] If you've fixed a bug or added code that should be tested, add tests!
19-
- [ ] If you've added a new tool - have you followed the pipeline conventions in the [contribution docs](https://github.com/nf-core/dragen/tree/master/.github/CONTRIBUTING.md)
20-
- [ ] If necessary, also make a PR on the nf-core/dragen _branch_ on the [nf-core/test-datasets](https://github.com/nf-core/test-datasets) repository.
21-
- [ ] Make sure your code lints (`nf-core lint`).
22-
- [ ] Ensure the test suite passes (`nextflow run . -profile test,docker`).
18+
- [ ] If you've added a new tool - have you followed the pipeline conventions in the [contribution docs](https://github.com/seqeralabs/dragen/tree/master/.github/CONTRIBUTING.md)
19+
- [ ] Make sure your code lints (`nf-core pipelines lint`).
20+
- [ ] Ensure the test suite passes (`nextflow run . -profile test,docker --outdir <OUTDIR>`).
21+
- [ ] Check for unexpected warnings in debug mode (`nextflow run . -profile debug,test,docker --outdir <OUTDIR>`).
2322
- [ ] Usage Documentation in `docs/usage.md` is updated.
2423
- [ ] Output Documentation in `docs/output.md` is updated.
2524
- [ ] `CHANGELOG.md` is updated.

Diff for: .github/workflows/awsfulltest.yml

-36
This file was deleted.

Diff for: .github/workflows/awstest.yml

-30
This file was deleted.

Diff for: .github/workflows/branch.yml

-46
This file was deleted.

0 commit comments

Comments
 (0)