Skip to content

Commit 2ebae61

Browse files
authored
Merge pull request #221 from nf-core/dev
Dev -> Master for v2.2 release
2 parents f017132 + 0e659df commit 2ebae61

File tree

200 files changed

+1390
-804
lines changed

Some content is hidden

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

200 files changed

+1390
-804
lines changed

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ indent_style = space
1111
[*.{yml,yaml}]
1212
indent_size = 2
1313

14+
[*.json]
15+
insert_final_newline = unset
16+
1417
# These files are edited and tested upstream in nf-core/modules
1518
[/modules/nf-core/**]
1619
charset = unset

.github/CONTRIBUTING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ If you'd like to write some code for nf-core/viralrecon, the standard workflow i
1919
* If there isn't one already, please create one so that others know you're working on this
2020
2. [Fork](https://help.github.com/en/github/getting-started-with-github/fork-a-repo) the [nf-core/viralrecon repository](https://github.com/nf-core/viralrecon) to your GitHub account
2121
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).
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).
2323
5. Submit a Pull Request against the `dev` branch and wait for the code to be reviewed and merged
2424

2525
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/).
@@ -69,12 +69,12 @@ If you wish to contribute a new step, please use the following coding standards:
6969
2. Write the process block (see below).
7070
3. Define the output channel if needed (see below).
7171
4. Add any new flags/options to `nextflow.config` with a default (see below).
72-
5. Add any new flags/options to `nextflow_schema.json` with help text (with `nf-core schema build .`).
72+
5. Add any new flags/options to `nextflow_schema.json` with help text (with `nf-core schema build`).
7373
6. Add any new flags/options to the help message (for integer/text parameters, print to help the corresponding `nextflow.config` parameter).
7474
7. Add sanity checks for all relevant parameters.
7575
8. Add any new software to the `scrape_software_versions.py` script in `bin/` and the version command to the `scrape_software_versions` process in `main.nf`.
7676
9. Do local tests that the new code works properly and as expected.
77-
10. Add a new test command in `.github/workflow/ci.yaml`.
77+
10. Add a new test command in `.github/workflow/ci.yml`.
7878
11. If applicable add a [MultiQC](https://https://multiqc.info/) module.
7979
12. Update MultiQC config `assets/multiqc_config.yaml` so relevant suffixes, name clean up, General Statistics Table column order, and module figures are in the right order.
8080
13. Optional: Add any descriptions of MultiQC report sections and output files to `docs/output.md`.
@@ -83,7 +83,7 @@ If you wish to contribute a new step, please use the following coding standards:
8383

8484
Parameters should be initialised / defined with default values in `nextflow.config` under the `params` scope.
8585

86-
Once there, use `nf-core schema build .` to add to `nextflow_schema.json`.
86+
Once there, use `nf-core schema build` to add to `nextflow_schema.json`.
8787

8888
### Default processes resource requirements
8989

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Please delete this text and anything that's not relevant from the template below
1818
I have checked the following places for your error:
1919

2020
- [ ] [nf-core website: troubleshooting](https://nf-co.re/usage/troubleshooting)
21-
- [ ] [nf-core/viralrecon pipeline documentation](https://nf-co.re/nf-core/viralrecon/usage)
21+
- [ ] [nf-core/viralrecon pipeline documentation](https://nf-co.re/viralrecon/usage)
2222

2323
## Description of the bug
2424

@@ -51,13 +51,12 @@ Have you provided the following extra information/files:
5151

5252
## Nextflow Installation
5353

54-
- Version: <!-- [e.g. 19.10.0] -->
54+
- Version: <!-- [e.g. 21.04.0] -->
5555

5656
## Container engine
5757

5858
- Engine: <!-- [e.g. Conda, Docker, Singularity, Podman, Shifter or Charliecloud] -->
5959
- version: <!-- [e.g. 1.0.0] -->
60-
- Image tag: <!-- [e.g. nfcore/viralrecon:1.0.0] -->
6160

6261
## Additional context
6362

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Learn more about contributing: [CONTRIBUTING.md](https://github.com/nf-core/vira
1818
- [ ] If you've fixed a bug or added code that should be tested, add tests!
1919
- [ ] If you've added a new tool - have you followed the pipeline conventions in the [contribution docs](https://github.com/nf-core/viralrecon/tree/master/.github/CONTRIBUTING.md)
2020
- [ ] If necessary, also make a PR on the nf-core/viralrecon _branch_ on the [nf-core/test-datasets](https://github.com/nf-core/test-datasets) repository.
21-
- [ ] Make sure your code lints (`nf-core lint .`).
21+
- [ ] Make sure your code lints (`nf-core lint`).
2222
- [ ] Ensure the test suite passes (`nextflow run . -profile test,docker`).
2323
- [ ] Usage Documentation in `docs/usage.md` is updated.
2424
- [ ] Output Documentation in `docs/output.md` is updated.

.github/workflows/awsfulltest.yml

Lines changed: 17 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,33 @@
11
name: nf-core AWS full size tests
22
# This workflow is triggered on published releases.
3-
# It can be additionally triggered manually with GitHub actions workflow dispatch.
3+
# It can be additionally triggered manually with GitHub actions workflow dispatch button.
44
# It runs the -profile 'test_full' on AWS batch
55

66
on:
77
release:
88
types: [published]
99
workflow_dispatch:
10-
11-
env:
12-
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
13-
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
14-
TOWER_ACCESS_TOKEN: ${{ secrets.AWS_TOWER_TOKEN }}
15-
AWS_JOB_DEFINITION: ${{ secrets.AWS_JOB_DEFINITION }}
16-
AWS_JOB_QUEUE: ${{ secrets.AWS_JOB_QUEUE }}
17-
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
18-
1910
jobs:
20-
run-awstest:
11+
run-tower:
2112
name: Run AWS full tests
2213
if: github.repository == 'nf-core/viralrecon'
2314
runs-on: ubuntu-latest
15+
# Do a full-scale run with data from each sequencing platform
2416
strategy:
2517
matrix:
26-
platform: ['illumina', 'nanopore']
18+
platform: ["illumina", "nanopore"]
2719
steps:
28-
- name: Setup Miniconda
29-
uses: conda-incubator/setup-miniconda@v2
20+
- name: Launch workflow via tower
21+
uses: nf-core/tower-action@master
3022
with:
31-
auto-update-conda: true
32-
python-version: 3.7
33-
- name: Install awscli
34-
run: conda install -c conda-forge awscli
35-
- name: Start AWS batch job
36-
# Do a full-scale run with data from each sequencing platform
37-
run: |
38-
aws batch submit-job \
39-
--region eu-west-1 \
40-
--job-name nf-core-viralrecon \
41-
--job-queue $AWS_JOB_QUEUE \
42-
--job-definition $AWS_JOB_DEFINITION \
43-
--container-overrides '{"command": ["nf-core/viralrecon", "-r '"${GITHUB_SHA}"' -profile test_full_'"${{matrix.platform}}"' --outdir s3://'"${AWS_S3_BUCKET}"'/viralrecon/results-'"${GITHUB_SHA}"'/platform_'"${{matrix.platform}}"' -w s3://'"${AWS_S3_BUCKET}"'/viralrecon/work-'"${GITHUB_SHA}"'/'"${{matrix.platform}}"' -with-tower"], "environment": [{"name": "TOWER_ACCESS_TOKEN", "value": "'"$TOWER_ACCESS_TOKEN"'"}]}'
23+
workspace_id: ${{ secrets.TOWER_WORKSPACE_ID }}
24+
bearer_token: ${{ secrets.TOWER_BEARER_TOKEN }}
25+
compute_env: ${{ secrets.TOWER_COMPUTE_ENV }}
26+
pipeline: ${{ github.repository }}
27+
revision: ${{ github.sha }}
28+
workdir: s3://${{ secrets.AWS_S3_BUCKET }}/work/viralrecon/work-${{ github.sha }}
29+
parameters: |
30+
{
31+
"outdir": "s3://${{ secrets.AWS_S3_BUCKET }}/viralrecon/results-${{ github.sha }}/platform_${{ matrix.platform }}"
32+
}
33+
profiles: '[ "test_full_${{ matrix.platform }}", "aws_tower" ]'

.github/workflows/awstest.yml

Lines changed: 17 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,27 @@
11
name: nf-core AWS test
2-
# This workflow is triggered on push to the master branch.
3-
# It can be additionally triggered manually with GitHub actions workflow dispatch.
4-
# It runs the -profile 'test' on AWS batch.
2+
# This workflow can be triggered manually with the GitHub actions workflow dispatch button.
3+
# It runs the -profile 'test' on AWS batch
54

65
on:
76
workflow_dispatch:
8-
9-
env:
10-
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
11-
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
12-
TOWER_ACCESS_TOKEN: ${{ secrets.AWS_TOWER_TOKEN }}
13-
AWS_JOB_DEFINITION: ${{ secrets.AWS_JOB_DEFINITION }}
14-
AWS_JOB_QUEUE: ${{ secrets.AWS_JOB_QUEUE }}
15-
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
16-
177
jobs:
18-
run-awstest:
8+
run-tower:
199
name: Run AWS tests
2010
if: github.repository == 'nf-core/viralrecon'
2111
runs-on: ubuntu-latest
2212
steps:
23-
- name: Setup Miniconda
24-
uses: conda-incubator/setup-miniconda@v2
13+
- name: Launch workflow via tower
14+
uses: nf-core/tower-action@master
15+
2516
with:
26-
auto-update-conda: true
27-
python-version: 3.7
28-
- name: Install awscli
29-
run: conda install -c conda-forge awscli
30-
- name: Start AWS batch job
31-
run: |
32-
aws batch submit-job \
33-
--region eu-west-1 \
34-
--job-name nf-core-viralrecon \
35-
--job-queue $AWS_JOB_QUEUE \
36-
--job-definition $AWS_JOB_DEFINITION \
37-
--container-overrides '{"command": ["nf-core/viralrecon", "-r '"${GITHUB_SHA}"' -profile test --outdir s3://'"${AWS_S3_BUCKET}"'/viralrecon/results-'"${GITHUB_SHA}"' -w s3://'"${AWS_S3_BUCKET}"'/viralrecon/work-'"${GITHUB_SHA}"' -with-tower"], "environment": [{"name": "TOWER_ACCESS_TOKEN", "value": "'"$TOWER_ACCESS_TOKEN"'"}]}'
17+
workspace_id: ${{ secrets.TOWER_WORKSPACE_ID }}
18+
bearer_token: ${{ secrets.TOWER_BEARER_TOKEN }}
19+
compute_env: ${{ secrets.TOWER_COMPUTE_ENV }}
20+
pipeline: ${{ github.repository }}
21+
revision: ${{ github.sha }}
22+
workdir: s3://${{ secrets.AWS_S3_BUCKET }}/work/viralrecon/work-${{ github.sha }}
23+
parameters: |
24+
{
25+
"outdir": "s3://${{ secrets.AWS_S3_BUCKET }}/viralrecon/results-${{ github.sha }}"
26+
}
27+
profiles: '[ "test", "aws_tower" ]'

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
strategy:
2121
matrix:
2222
# Nextflow versions: check pipeline minimum and current latest
23-
nxf_ver: [21.04.0, ""]
23+
nxf_ver: ["21.04.0", ""]
2424
steps:
2525
- name: Check out pipeline code
2626
uses: actions/checkout@v2
@@ -111,7 +111,7 @@ jobs:
111111
--input false,
112112
--min_barcode_reads 10000,
113113
--min_guppyplex_reads 10000,
114-
"--artic_minion_caller medaka",
114+
"--artic_minion_caller medaka --sequencing_summary false --fast5_dir false",
115115
]
116116
steps:
117117
- name: Check out pipeline code

.github/workflows/linting.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- uses: actions/checkout@v2
1515
- uses: actions/setup-node@v1
1616
with:
17-
node-version: "10"
17+
node-version: '10'
1818
- name: Install markdownlint
1919
run: npm install -g markdownlint-cli
2020
- name: Run Markdownlint
@@ -35,7 +35,7 @@ jobs:
3535
* On Mac: `brew install markdownlint-cli`
3636
* Everything else: [Install `npm`](https://www.npmjs.com/get-npm) then [install `markdownlint-cli`](https://www.npmjs.com/package/markdownlint-cli) (`npm install -g markdownlint-cli`)
3737
* Fix the markdown errors
38-
* Automatically: `markdownlint . --config .github/markdownlint.yml --fix`
38+
* Automatically: `markdownlint . --fix`
3939
* Manually resolve anything left from `markdownlint .`
4040
4141
Once you push these changes the test should pass, and you can hide this comment :+1:
@@ -53,7 +53,7 @@ jobs:
5353

5454
- uses: actions/setup-node@v1
5555
with:
56-
node-version: "10"
56+
node-version: '10'
5757

5858
- name: Install editorconfig-checker
5959
run: npm install -g editorconfig-checker
@@ -67,7 +67,7 @@ jobs:
6767
- uses: actions/checkout@v1
6868
- uses: actions/setup-node@v1
6969
with:
70-
node-version: "10"
70+
node-version: '10'
7171
- name: Install yaml-lint
7272
run: npm install -g yaml-lint
7373
- name: Run yaml-lint
@@ -101,6 +101,7 @@ jobs:
101101
nf-core:
102102
runs-on: ubuntu-latest
103103
steps:
104+
104105
- name: Check out pipeline code
105106
uses: actions/checkout@v2
106107

@@ -113,8 +114,8 @@ jobs:
113114
114115
- uses: actions/setup-python@v1
115116
with:
116-
python-version: "3.6"
117-
architecture: "x64"
117+
python-version: '3.6'
118+
architecture: 'x64'
118119

119120
- name: Install dependencies
120121
run: |
@@ -126,7 +127,7 @@ jobs:
126127
GITHUB_COMMENTS_URL: ${{ github.event.pull_request.comments_url }}
127128
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
128129
GITHUB_PR_COMMIT: ${{ github.event.pull_request.head.sha }}
129-
run: nf-core -l lint_log.txt lint ${GITHUB_WORKSPACE} --markdown lint_results.md
130+
run: nf-core -l lint_log.txt lint --dir ${GITHUB_WORKSPACE} --markdown lint_results.md
130131

131132
- name: Save PR number
132133
if: ${{ always() }}
@@ -141,3 +142,4 @@ jobs:
141142
lint_log.txt
142143
lint_results.md
143144
PR_number.txt
145+

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ work/
33
data/
44
results/
55
.DS_Store
6-
tests/
76
testing/
87
testing*
98
*.pyc

.nf-core-lint.yaml

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)