Skip to content

Commit 96fe7f9

Browse files
Merge branch 'dev' into issue797-skip_umitools_extract
2 parents 3565af5 + d1e5490 commit 96fe7f9

Some content is hidden

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

62 files changed

+1459
-1247
lines changed

.editorconfig

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,9 @@ 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

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ name: Bug report
22
description: Report something that is broken or incorrect
33
labels: bug
44
body:
5-
65
- type: markdown
76
attributes:
87
value: |

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,13 @@ Remember that PRs should be made against the dev branch, unless you're preparing
1010
1111
Learn more about contributing: [CONTRIBUTING.md](https://github.com/nf-core/rnaseq/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/rnaseq/tree/master/.github/CONTRIBUTING.md)
20-
- [ ] If necessary, also make a PR on the nf-core/rnaseq _branch_ on the [nf-core/test-datasets](https://github.com/nf-core/test-datasets) repository.
18+
- [ ] If you've added a new tool - have you followed the pipeline conventions in the [contribution docs](https://github.com/nf-core/rnaseq/tree/master/.github/CONTRIBUTING.md)
19+
- [ ] If necessary, also make a PR on the nf-core/rnaseq _branch_ on the [nf-core/test-datasets](https://github.com/nf-core/test-datasets) repository.
2120
- [ ] Make sure your code lints (`nf-core lint`).
2221
- [ ] Ensure the test suite passes (`nextflow run . -profile test,docker --outdir <OUTDIR>`).
2322
- [ ] Usage Documentation in `docs/usage.md` is updated.

.github/workflows/awsfulltest.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,15 @@ jobs:
1818
aligner: ["star_salmon", "star_rsem", "hisat2"]
1919
steps:
2020
- name: Launch workflow via tower
21-
uses: nf-core/tower-action@v2
21+
uses: nf-core/tower-action@v3
2222
with:
2323
workspace_id: ${{ secrets.TOWER_WORKSPACE_ID }}
2424
access_token: ${{ secrets.TOWER_ACCESS_TOKEN }}
2525
compute_env: ${{ secrets.TOWER_COMPUTE_ENV }}
26-
pipeline: ${{ github.repository }}
27-
revision: ${{ github.sha }}
2826
workdir: s3://${{ secrets.AWS_S3_BUCKET }}/work/rnaseq/work-${{ github.sha }}
2927
parameters: |
3028
{
3129
"outdir" : "s3://${{ secrets.AWS_S3_BUCKET }}/rnaseq/results-${{ github.sha }}/aligner_${{ matrix.aligner }}",
3230
"aligner": "${{ matrix.aligner }}"
3331
}
3432
profiles: test_full,aws_tower
35-
nextflow_config: |
36-
process.errorStrategy = 'retry'
37-
process.maxRetries = 3

.github/workflows/awstest.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,16 @@ jobs:
1010
if: github.repository == 'nf-core/rnaseq'
1111
runs-on: ubuntu-latest
1212
steps:
13+
# Launch workflow using Tower CLI tool action
1314
- name: Launch workflow via tower
14-
uses: nf-core/tower-action@v2
15-
15+
uses: nf-core/tower-action@v3
1616
with:
1717
workspace_id: ${{ secrets.TOWER_WORKSPACE_ID }}
1818
access_token: ${{ secrets.TOWER_ACCESS_TOKEN }}
1919
compute_env: ${{ secrets.TOWER_COMPUTE_ENV }}
20-
pipeline: ${{ github.repository }}
21-
revision: ${{ github.sha }}
2220
workdir: s3://${{ secrets.AWS_S3_BUCKET }}/work/rnaseq/work-${{ github.sha }}
2321
parameters: |
2422
{
2523
"outdir": "s3://${{ secrets.AWS_S3_BUCKET }}/rnaseq/results-test-${{ github.sha }}"
2624
}
2725
profiles: test,aws_tower
28-
nextflow_config: |
29-
process.errorStrategy = 'retry'
30-
process.maxRetries = 3

.github/workflows/branch.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ jobs:
1313
- name: Check PRs
1414
if: github.repository == 'nf-core/rnaseq'
1515
run: |
16-
{ [[ ${{github.event.pull_request.head.repo.full_name }} == nf-core/rnaseq ]] && [[ $GITHUB_HEAD_REF = "dev" ]]; } || [[ $GITHUB_HEAD_REF == "patch" ]]
17-
16+
"{ [[ ${{github.event.pull_request.head.repo.full_name }} == nf-core/rnaseq ]] && [[ $GITHUB_HEAD_REF = "dev" ]]; } || [[ $GITHUB_HEAD_REF == "patch" ]]"
1817
1918
# If the above check failed, post a comment on the PR explaining the failure
2019
# NOTE - this doesn't currently work if the PR is coming from a fork, due to limitations in GitHub actions secrets
@@ -43,3 +42,4 @@ jobs:
4342
Thanks again for your contribution!
4443
repo-token: ${{ secrets.GITHUB_TOKEN }}
4544
allow-repeats: false
45+
#

.github/workflows/ci.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,20 @@ env:
1414

1515
jobs:
1616
test:
17-
name: Run workflow tests
17+
name: Run pipeline with test data
1818
# Only run on push if this is the nf-core dev branch (merged PRs)
19-
if: ${{ github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/rnaseq') }}
19+
if: "${{ github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/rnaseq') }}"
2020
runs-on: ubuntu-latest
2121
strategy:
2222
matrix:
2323
# Nextflow versions
2424
include:
2525
# Test pipeline minimum Nextflow version
26-
- NXF_VER: '21.10.3'
27-
NXF_EDGE: ''
26+
- NXF_VER: "21.10.3"
27+
NXF_EDGE: ""
2828
# Test latest edge release of Nextflow
29-
- NXF_VER: ''
30-
NXF_EDGE: '1'
29+
- NXF_VER: ""
30+
NXF_EDGE: "1"
3131
steps:
3232
- name: Check out pipeline code
3333
uses: actions/checkout@v2
@@ -143,3 +143,5 @@ jobs:
143143
- name: Run pipeline with Salmon and various parameters
144144
run: |
145145
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --pseudo_aligner salmon ${{ matrix.parameters }} --outdir ./results
146+
147+
#

.github/workflows/linting.yml

Lines changed: 14 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,14 @@
11
name: nf-core linting
22
# This workflow is triggered on pushes and PRs to the repository.
3-
# It runs the `nf-core lint` and markdown lint tests to ensure that the code meets the nf-core guidelines
3+
# It runs the `nf-core lint` and markdown lint tests to ensure
4+
# that the code meets the nf-core guidelines.
45
on:
56
push:
67
pull_request:
78
release:
89
types: [published]
910

1011
jobs:
11-
Markdown:
12-
runs-on: ubuntu-latest
13-
steps:
14-
- uses: actions/checkout@v2
15-
- uses: actions/setup-node@v2
16-
- name: Install markdownlint
17-
run: npm install -g markdownlint-cli
18-
- name: Run Markdownlint
19-
run: markdownlint .
20-
21-
# If the above check failed, post a comment on the PR explaining the failure
22-
- name: Post PR comment
23-
if: failure()
24-
uses: mshick/add-pr-comment@v1
25-
with:
26-
message: |
27-
## Markdown linting is failing
28-
29-
To keep the code consistent with lots of contributors, we run automated code consistency checks.
30-
To fix this CI test, please run:
31-
32-
* Install `markdownlint-cli`
33-
* On Mac: `brew install markdownlint-cli`
34-
* 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`)
35-
* Fix the markdown errors
36-
* Automatically: `markdownlint . --fix`
37-
* Manually resolve anything left from `markdownlint .`
38-
39-
Once you push these changes the test should pass, and you can hide this comment :+1:
40-
41-
We highly recommend setting up markdownlint in your code editor so that this formatting is done automatically on save. Ask about it on Slack for help!
42-
43-
Thanks again for your contribution!
44-
repo-token: ${{ secrets.GITHUB_TOKEN }}
45-
allow-repeats: false
46-
4712
EditorConfig:
4813
runs-on: ubuntu-latest
4914
steps:
@@ -55,47 +20,24 @@ jobs:
5520
run: npm install -g editorconfig-checker
5621

5722
- name: Run ECLint check
58-
run: editorconfig-checker -exclude README.md $(git ls-files | grep -v test)
23+
run: editorconfig-checker -exclude README.md $(find .* -type f | grep -v '.git\|.py\|.md\|json\|yml\|yaml\|html\|css\|work\|.nextflow\|build\|nf_core.egg-info\|log.txt\|Makefile')
5924

60-
YAML:
25+
Prettier:
6126
runs-on: ubuntu-latest
6227
steps:
63-
- uses: actions/checkout@v1
64-
- uses: actions/setup-node@v2
65-
- name: Install yaml-lint
66-
run: npm install -g yaml-lint
67-
- name: Run yaml-lint
68-
run: yamllint $(find ${GITHUB_WORKSPACE} -type f -name "*.yml" -o -name "*.yaml") -c ${GITHUB_WORKSPACE}/.yamllint.yml
69-
70-
# If the above check failed, post a comment on the PR explaining the failure
71-
- name: Post PR comment
72-
if: failure()
73-
uses: mshick/add-pr-comment@v1
74-
with:
75-
message: |
76-
## YAML linting is failing
77-
78-
To keep the code consistent with lots of contributors, we run automated code consistency checks.
79-
To fix this CI test, please run:
80-
81-
* Install `yaml-lint`
82-
* [Install `npm`](https://www.npmjs.com/get-npm) then [install `yaml-lint`](https://www.npmjs.com/package/yaml-lint) (`npm install -g yaml-lint`)
83-
* Fix the markdown errors
84-
* Run the test locally: `yamllint $(find . -type f -name "*.yml" -o -name "*.yaml") -c ./.yamllint.yml`
85-
* Fix any reported errors in your YAML files
28+
- uses: actions/checkout@v2
8629

87-
Once you push these changes the test should pass, and you can hide this comment :+1:
30+
- uses: actions/setup-node@v2
8831

89-
We highly recommend setting up yaml-lint in your code editor so that this formatting is done automatically on save. Ask about it on Slack for help!
32+
- name: Install Prettier
33+
run: npm install -g prettier
9034

91-
Thanks again for your contribution!
92-
repo-token: ${{ secrets.GITHUB_TOKEN }}
93-
allow-repeats: false
35+
- name: Run Prettier --check
36+
run: prettier --check ${GITHUB_WORKSPACE}
9437

9538
nf-core:
9639
runs-on: ubuntu-latest
9740
steps:
98-
9941
- name: Check out pipeline code
10042
uses: actions/checkout@v2
10143

@@ -108,8 +50,8 @@ jobs:
10850
10951
- uses: actions/setup-python@v1
11052
with:
111-
python-version: '3.6'
112-
architecture: 'x64'
53+
python-version: "3.6"
54+
architecture: "x64"
11355

11456
- name: Install dependencies
11557
run: |
@@ -136,3 +78,5 @@ jobs:
13678
lint_log.txt
13779
lint_results.md
13880
PR_number.txt
81+
82+
#

.github/workflows/linting_comment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,4 @@ jobs:
2626
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2727
number: ${{ steps.pr_number.outputs.pr_number }}
2828
path: linting-logs/lint_results.md
29+
#

.gitpod.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ image: nfcore/gitpod:latest
22

33
vscode:
44
extensions: # based on nf-core.nf-core-extensionpack
5-
- codezombiech.gitignore # Language support for .gitignore files
5+
- codezombiech.gitignore # Language support for .gitignore files
66
# - cssho.vscode-svgviewer # SVG viewer
7-
- davidanson.vscode-markdownlint # Markdown/CommonMark linting and style checking for Visual Studio Code
8-
- eamodio.gitlens # Quickly glimpse into whom, why, and when a line or code block was changed
9-
- EditorConfig.EditorConfig # override user/workspace settings with settings found in .editorconfig files
10-
- Gruntfuggly.todo-tree # Display TODO and FIXME in a tree view in the activity bar
11-
- mechatroner.rainbow-csv # Highlight columns in csv files in different colors
7+
- esbenp.prettier-vscode # Markdown/CommonMark linting and style checking for Visual Studio Code
8+
- eamodio.gitlens # Quickly glimpse into whom, why, and when a line or code block was changed
9+
- EditorConfig.EditorConfig # override user/workspace settings with settings found in .editorconfig files
10+
- Gruntfuggly.todo-tree # Display TODO and FIXME in a tree view in the activity bar
11+
- mechatroner.rainbow-csv # Highlight columns in csv files in different colors
1212
# - nextflow.nextflow # Nextflow syntax highlighting
13-
- oderwat.indent-rainbow # Highlight indentation level
14-
- streetsidesoftware.code-spell-checker # Spelling checker for source code
13+
- oderwat.indent-rainbow # Highlight indentation level
14+
- streetsidesoftware.code-spell-checker # Spelling checker for source code

0 commit comments

Comments
 (0)