Skip to content

Commit 7923b64

Browse files
authored
Merge pull request #37 from CenterForMedicalGeneticsGhent/dev
Dev
2 parents 80842ad + 5111f8d commit 7923b64

File tree

146 files changed

+3885
-1044
lines changed

Some content is hidden

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

146 files changed

+3885
-1044
lines changed

.devcontainer/devcontainer.json

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"name": "nfcore",
3+
"image": "nfcore/gitpod:latest",
4+
"remoteUser": "gitpod",
5+
// Configure tool-specific properties.
6+
"customizations": {
7+
// Configure properties specific to VS Code.
8+
"vscode": {
9+
// Set *default* container specific settings.json values on container create.
10+
"settings": {
11+
"python.defaultInterpreterPath": "/opt/conda/bin/python",
12+
"python.linting.enabled": true,
13+
"python.linting.pylintEnabled": true,
14+
"python.formatting.autopep8Path": "/opt/conda/bin/autopep8",
15+
"python.formatting.yapfPath": "/opt/conda/bin/yapf",
16+
"python.linting.flake8Path": "/opt/conda/bin/flake8",
17+
"python.linting.pycodestylePath": "/opt/conda/bin/pycodestyle",
18+
"python.linting.pydocstylePath": "/opt/conda/bin/pydocstyle",
19+
"python.linting.pylintPath": "/opt/conda/bin/pylint"
20+
},
21+
// Add the IDs of extensions you want installed when the container is created.
22+
"extensions": ["ms-python.python", "ms-python.vscode-pylance", "nf-core.nf-core-extensionpack"]
23+
}
24+
}
25+
}

.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

.github/CONTRIBUTING.md

+16
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,19 @@ If you are using a new feature from core Nextflow, you may bump the minimum requ
9595
### Images and figures
9696

9797
For overview images and other documents we follow the nf-core [style guidelines and examples](https://nf-co.re/developers/design_guidelines).
98+
99+
## GitHub Codespaces
100+
101+
This repo includes a devcontainer configuration which will create a GitHub Codespaces for Nextflow development! This is an online developer environment that runs in your browser, complete with VSCode and a terminal.
102+
103+
To get started:
104+
105+
- Open the repo in [Codespaces](https://github.com/CenterForMedicalGeneticsGhent/nf-cmgg-preprocessing/codespaces)
106+
- Tools installed
107+
- nf-core
108+
- Nextflow
109+
110+
Devcontainer specs:
111+
112+
- [DevContainer config](.devcontainer/devcontainer.json)
113+
- [Dockerfile](.devcontainer/Dockerfile)

.github/ISSUE_TEMPLATE/bug_report.yml

+22-17
Original file line numberDiff line numberDiff line change
@@ -2,48 +2,53 @@ name: Bug report
22
description: Report something that is broken or incorrect
33
labels: bug
44
body:
5-
- type: markdown
6-
attributes:
7-
value: |
8-
Before you post this issue, please check the documentation:
9-
10-
- [nf-core website: troubleshooting](https://nf-co.re/usage/troubleshooting)
11-
125
- type: textarea
136
id: description
147
attributes:
158
label: Description of the bug
169
description: A clear and concise description of what the bug is.
1710
validations:
1811
required: true
19-
2012
- type: textarea
2113
id: command_used
2214
attributes:
2315
label: Command used and terminal output
24-
description: Steps to reproduce the behaviour. Please paste the command you used to launch the pipeline and the output from your terminal.
16+
description: Steps to reproduce the behaviour. Please paste the command you used
17+
to launch the pipeline and the output from your terminal.
2518
render: console
26-
placeholder: |
27-
$ nextflow run ...
19+
placeholder: "$ nextflow run ...
20+
2821
2922
Some output where something broke
3023
24+
"
3125
- type: textarea
3226
id: files
3327
attributes:
3428
label: Relevant files
35-
description: |
36-
Please drag and drop the relevant files here. Create a `.zip` archive if the extension is not allowed.
37-
Your verbose log file `.nextflow.log` is often useful _(this is a hidden file in the directory where you launched the pipeline)_ as well as custom Nextflow configuration files.
29+
description: "Please drag and drop the relevant files here. Create a `.zip` archive
30+
if the extension is not allowed.
31+
32+
Your verbose log file `.nextflow.log` is often useful _(this is a hidden file
33+
in the directory where you launched the pipeline)_ as well as custom Nextflow
34+
configuration files.
3835
36+
"
3937
- type: textarea
4038
id: system
4139
attributes:
4240
label: System information
43-
description: |
44-
* Nextflow version _(eg. 21.10.3)_
41+
description: "* Nextflow version _(eg. 22.10.1)_
42+
4543
* Hardware _(eg. HPC, Desktop, Cloud)_
44+
4645
* Executor _(eg. slurm, local, awsbatch)_
46+
4747
* Container engine: _(e.g. Docker, Singularity, Conda, Podman, Shifter or Charliecloud)_
48+
4849
* OS _(eg. CentOS Linux, macOS, Linux Mint)_
49-
* Version of CenterForMedicalGeneticsGhent/nf-cmgg-preprocessing _(eg. 1.1, 1.5, 1.8.2)_
50+
51+
* Version of CenterForMedicalGeneticsGhent/nf-cmgg-preprocessing _(eg. 1.1,
52+
1.5, 1.8.2)_
53+
54+
"

.github/ISSUE_TEMPLATE/feature_request.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Feature request
2-
description: Suggest an idea for the cmgg-preprocessing pipeline
3-
labels: enhancement
2+
description: Suggest an idea for the CenterForMedicalGeneticsGhent/nf-cmgg-preprocessing pipeline
3+
labels:
4+
- enhancement
45
body:
56
- type: textarea
67
id: description

.github/workflows/ci.yml

+15-3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ on:
1010

1111
env:
1212
NXF_ANSI_LOG: false
13+
AWS_ACCESS_KEY_ID: ${{ secrets.UGENT_S3_ACCESS_KEY }}
14+
AWS_SECRET_ACCESS_KEY: ${{ secrets.UGENT_S3_SECRET_KEY }}
1315

1416
jobs:
1517
test:
@@ -20,8 +22,18 @@ jobs:
2022
strategy:
2123
matrix:
2224
NXF_VER:
23-
- "21.10.3"
24-
- "latest-everything"
25+
- "22.10.4"
26+
#- "latest-everything"
27+
test:
28+
- "test_flowcell"
29+
#- "test_fastq"
30+
#- "test_cram"
31+
aligner:
32+
#- "bowtie2"
33+
- "bwamem"
34+
#- "bwamem2"
35+
#- "dragmap"
36+
#- "snap"
2537
steps:
2638
- name: Check out pipeline code
2739
uses: actions/checkout@v2
@@ -33,4 +45,4 @@ jobs:
3345

3446
- name: Run pipeline with test data
3547
run: |
36-
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --outdir ./results
48+
nextflow run ${GITHUB_WORKSPACE} -profile ${{ matrix.test }},docker --aligner ${{ matrix.aligner }} --outdir ./results

.github/workflows/linting.yml

+17-9
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ name: nf-core linting
44
# that the code meets the nf-core guidelines.
55
on:
66
push:
7+
branches:
8+
- dev
79
pull_request:
810
release:
911
types: [published]
@@ -12,9 +14,9 @@ jobs:
1214
EditorConfig:
1315
runs-on: ubuntu-latest
1416
steps:
15-
- uses: actions/checkout@v2
17+
- uses: actions/checkout@v3
1618

17-
- uses: actions/setup-node@v2
19+
- uses: actions/setup-node@v3
1820

1921
- name: Install editorconfig-checker
2022
run: npm install -g editorconfig-checker
@@ -25,9 +27,9 @@ jobs:
2527
Prettier:
2628
runs-on: ubuntu-latest
2729
steps:
28-
- uses: actions/checkout@v2
30+
- uses: actions/checkout@v3
2931

30-
- uses: actions/setup-node@v2
32+
- uses: actions/setup-node@v3
3133

3234
- name: Install Prettier
3335
run: npm install -g prettier
@@ -38,7 +40,7 @@ jobs:
3840
PythonBlack:
3941
runs-on: ubuntu-latest
4042
steps:
41-
- uses: actions/checkout@v2
43+
- uses: actions/checkout@v3
4244

4345
- name: Check code lints with Black
4446
uses: psf/black@stable
@@ -50,12 +52,17 @@ jobs:
5052
with:
5153
message: |
5254
## Python linting (`black`) is failing
55+
5356
To keep the code consistent with lots of contributors, we run automated code consistency checks.
5457
To fix this CI test, please run:
58+
5559
* Install [`black`](https://black.readthedocs.io/en/stable/): `pip install black`
5660
* Fix formatting errors in your pipeline: `black .`
61+
5762
Once you push these changes the test should pass, and you can hide this comment :+1:
63+
5864
We highly recommend setting up Black in your code editor so that this formatting is done automatically on save. Ask about it on Slack for help!
65+
5966
Thanks again for your contribution!
6067
repo-token: ${{ secrets.GITHUB_TOKEN }}
6168
allow-repeats: false
@@ -64,20 +71,21 @@ jobs:
6471
runs-on: ubuntu-latest
6572
steps:
6673
- name: Check out pipeline code
67-
uses: actions/checkout@v2
74+
uses: actions/checkout@v3
6875

6976
- name: Install Nextflow
7077
uses: nf-core/setup-nextflow@v1
7178

72-
- uses: actions/setup-python@v3
79+
- uses: actions/setup-python@v4
7380
with:
7481
python-version: "3.7"
7582
architecture: "x64"
7683

7784
- name: Install dependencies
7885
run: |
7986
python -m pip install --upgrade pip
80-
pip install nf-core
87+
pip install --upgrade --force-reinstall git+https://github.com/nf-core/tools.git@dev
88+
8189
- name: Run nf-core lint
8290
env:
8391
GITHUB_COMMENTS_URL: ${{ github.event.pull_request.comments_url }}
@@ -91,7 +99,7 @@ jobs:
9199

92100
- name: Upload linting log file artifact
93101
if: ${{ always() }}
94-
uses: actions/upload-artifact@v2
102+
uses: actions/upload-artifact@v3
95103
with:
96104
name: linting-logs
97105
path: |

.github/workflows/linting_comment.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818

1919
- name: Get PR number
2020
id: pr_number
21-
run: echo "::set-output name=pr_number::$(cat linting-logs/PR_number.txt)"
21+
run: echo "pr_number=$(cat linting-logs/PR_number.txt)" >> $GITHUB_OUTPUT
2222

2323
- name: Post PR comment
2424
uses: marocchino/sticky-pull-request-comment@v2

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
.nextflow*
2+
.nf-test
23
work/
34
data/
45
results/
56
.DS_Store
67
testing/
78
testing*
89
*.pyc
10+
null

.nf-core.yml

+8-12
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,19 @@
11
repository_type: pipeline
22
lint:
33
files_exist:
4-
- assets/nf-core-preprocessing_logo_light.png
5-
- assets/nf-core-preprocessing_logo_dark.png
6-
- docs/images/nf-core-preprocessing_logo_light.png
7-
- docs/images/nf-core-preprocessing_logo_dark.png
4+
- .github/workflows/awsfulltest.yml
5+
- .github/workflows/awstest.yml
6+
- assets/nf-core-nf-cmgg-preprocessing_logo_dark.png
7+
- assets/nf-core-nf-cmgg-preprocessing_logo_light.png
8+
- conf/test_full.config
9+
- docs/images/nf-core-nf-cmgg-preprocessing_logo_dark.png
10+
- docs/images/nf-core-nf-cmgg-preprocessing_logo_light.png
811
files_unchanged:
9-
- .github/CONTRIBUTING.md
1012
- .github/ISSUE_TEMPLATE/feature_request.yml
11-
- .github/ISSUE_TEMPLATE/bug_report.yml
1213
- .github/PULL_REQUEST_TEMPLATE.md
13-
- .github/workflows/branch.yml
1414
- .github/workflows/linting.yml
15-
- assets/email_template.html
16-
- assets/email_template.txt
17-
- assets/sendmail_template.txt
15+
- .gitignore
1816
- docs/README.md
19-
- lib/NfcoreTemplate.groovy
20-
- .prettierignore
2117
nextflow_config:
2218
- manifest.name
2319
- manifest.homePage

.prettierignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
email_template.html
2-
adaptivecard_template.json
2+
adaptivecard.json
3+
slackreport.json
34
.nextflow*
45
work/
56
data/
@@ -8,3 +9,4 @@ results/
89
testing/
910
testing*
1011
*.pyc
12+
bin/

CHANGELOG.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
44
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
55

6-
## v1.1
6+
## v1.0.2dev
7+
8+
- Add `unaligned` denominator to unaligned samples
9+
10+
## v1.0.1
711

812
- Updated modules
913

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![GitHub Actions CI Status](https://github.com/CenterForMedicalGeneticsGhent/nf-cmgg-preprocessing/workflows/nf-core%20CI/badge.svg)](https://github.com/CenterForMedicalGeneticsGhent/nf-cmgg-preprocessing/actions?query=workflow%3A%22nf-core+CI%22)
44
[![GitHub Actions Linting Status](https://github.com/CenterForMedicalGeneticsGhent/nf-cmgg-preprocessing/workflows/nf-core%20linting/badge.svg)](https://github.com/CenterForMedicalGeneticsGhent/nf-cmgg-preprocessing/actions?query=workflow%3A%22nf-core+linting%22)
5-
[![Nextflow](https://img.shields.io/badge/nextflow%20DSL2-%E2%89%A521.10.3-23aa62.svg?labelColor=000000)](https://www.nextflow.io/)
5+
[![Nextflow](https://img.shields.io/badge/nextflow%20DSL2-%E2%89%A522.10.4-23aa62.svg?labelColor=000000)](https://www.nextflow.io/)
66

77
## Introduction
88

@@ -22,7 +22,7 @@ The pipeline is built using [Nextflow](https://www.nextflow.io), a workflow tool
2222

2323
## Quick Start
2424

25-
1. Install [`Nextflow`](https://www.nextflow.io/docs/latest/getstarted.html#installation) (`>=21.10.3`)
25+
1. Install [`Nextflow`](https://www.nextflow.io/docs/latest/getstarted.html#installation) (`>=22.10.4`)
2626

2727
2. Install any of [`Docker`](https://docs.docker.com/engine/installation/), [`Singularity`](https://www.sylabs.io/guides/3.0/user-guide/) (you can follow [this tutorial](https://singularity-tutorial.github.io/01-installation/)), [`Podman`](https://podman.io/), [`Shifter`](https://nersc.gitlab.io/development/shifter/how-to-use/) or [`Charliecloud`](https://hpc.github.io/charliecloud/) for full pipeline reproducibility _(you can use [`Conda`](https://conda.io/miniconda.html) both to install Nextflow itself and also to manage software within pipelines. Please only use it within pipelines as a last resort; see [docs](https://nf-co.re/usage/configuration#basic-configuration-profiles))_.
2828

File renamed without changes.

0 commit comments

Comments
 (0)