forked from connor-lab/ncov2019-artic-nf
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #65 from JD2112/v2.0
v2.0 - Pangolin container separated from Illumina and Nanopore workflows
- Loading branch information
Showing
160 changed files
with
50,638 additions
and
1,392 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: black | ||
on: pull_request | ||
jobs: | ||
black: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.9 | ||
- run: | | ||
python -m pip install --upgrade pip | ||
pip install git+https://github.com/psf/black | ||
- run: | | ||
black --check --verbose . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
.DS_Store | ||
.nextflow* | ||
nextflow | ||
results | ||
*.sif | ||
work | ||
environments/.DS_Store | ||
.idea/ | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
gms-artic v2.0 release workflow processes | ||
|
||
Nanopore medaka processes | ||
1. versions | ||
2. pangoversions | ||
3. fastqcNanopore | ||
4. multiqcNanopore | ||
5. articDownloadScheme | ||
6. articGuppyPlex | ||
7. articMinIONMedaka | ||
8. articRemoveUnmappedReads | ||
9. makeQCCSV | ||
10. writeQCSummaryCSV | ||
11. collateSamples - | ||
12. pangolinTyping | ||
13. nextclade | ||
14. getVariantDefinitions | ||
15. makeReport | ||
|
||
Nanopore nanopolish processes | ||
1. versions | ||
2. pangoversions | ||
3. fastqcNanopore | ||
4. multiqcNanopore | ||
5. pycoqc | ||
6. articDownloadScheme | ||
7. articGuppyPlex | ||
8. articMinIONNanopolish | ||
9. articRemoveUnmappedReads | ||
10. makeQCCSV | ||
11. writeQCSummaryCSV | ||
12. collateSamples | ||
13. pangolinTyping | ||
14. nextclade | ||
15. getVariantDefinitions | ||
16. makeReport | ||
|
||
Illumina processes | ||
1. articDownloadScheme | ||
2. indexReference | ||
3. versions | ||
4. pangoversions | ||
5. fastqc | ||
6. readTrimming | ||
7. readMapping | ||
8. flagStat | ||
9. trimPrimerSequences | ||
10. depth | ||
11. callConsensusFreebayes | ||
12. annotationVEP | ||
13. callVariants | ||
14. makeConsensus | ||
15. makeQCCSV | ||
16. writeQCSummaryCSV | ||
17. statsCoverage | ||
18. statsInsert | ||
19. statsAlignment | ||
20. multiqc | ||
21. collateSamples | ||
22. pangolinTyping | ||
23. nextclade | ||
24. getVariantDefinitions | ||
25. makeReport |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,160 @@ | ||
# GMS-artic (ncov2019-artic-nf) | ||
|
||
![logo](workflow-image/logo.png) | ||
|
||
A nextflow pipeline with a GMS touch for running the ARTIC network's fieldbioinformatics tools (https://github.com/artic-network/fieldbioinformatics). | ||
|
||
### Table of contents - | ||
- [Version updates](#Version-updates) | ||
- [Pipeline Diagram](#Pipeline-Diagram) | ||
- [Requirements](#Requirements) | ||
- [Quick start guide](#Quick-Start-Guide) | ||
- [parameters setup](#Parameters-setup) | ||
- [Test Data](#Test-Data) | ||
- [Run on local server](#-Run-on-local-server) | ||
- [Requirements](#Requirements) | ||
- [Illumina pipeline](#Illumina-pipeline) | ||
- [Nanopore nanopolish pipeline](#Nanopore-nanopolish-pipeline) | ||
- [Nanopore medaka pipeline](#Nanopore-medaka-pipeline) | ||
- [How to run in NGP server](#How-to-run-in-NGP-server) | ||
- [Datafile structure](#Datafile-structure) | ||
- [Pipeline run command](#Manual-running-of-analysis-pipeline) | ||
- [Illumina pipeline](#Run-Illumina-pipeline) | ||
- [Nanopore pipeline](#Run-Nanopore-Pipeline) | ||
- [Useful information](#Useful-information) | ||
------------ | ||
#### Major changes | ||
# Version updates | ||
## v2.0.0 | ||
### Major updates | ||
- Docker container separated for Pangolin typing | ||
- Illumina container: [gms-artic-illumina](https://hub.docker.com/repository/docker/genomicmedicinesweden/gms-artic-illumina) | ||
- Nanopore container: [gms-artic-nanopore](https://hub.docker.com/repository/docker/genomicmedicinesweden/gms-artic-nanopore) | ||
- Pangolin container: [gms-artic-pangolin](https://hub.docker.com/repository/docker/genomicmedicinesweden/gms-artic-pangolin) | ||
- pycoQC container : [pycoqc](https://hub.docker.com/repository/docker/jd21/pycoqc) | ||
- Added separate package version files for each workflow | ||
- versions: for Illumina and Nanopore | ||
- pangoversion: for pangolin typing | ||
- Illumina analysis additional features | ||
- flagstat | ||
- depth | ||
- VEP annotation | ||
- Illumina results works for sc2reporter visualization | ||
- Nanopore analysis additional features (artic & medaka) | ||
- [fastqc](https://github.com/s-andrews/FastQC) | ||
- [multiqc](https://multiqc.info) | ||
- [pycoQC](https://github.com/a-slide/pycoQC) *(only for artic)* | ||
|
||
## v1.8.0 | ||
### Minor updates | ||
|
||
- Pangolin v4 support | ||
- Updated Picard arguments | ||
- FastQC commands can be added from config | ||
- Added version of pangolin to build_dockerfile | ||
|
||
### Bug fixes | ||
- Fixed build_dockerfile | ||
- Fixed R issue | ||
- Fixed mamba issue | ||
|
||
### Major changes | ||
* The illumina and nanopore tracks automatically run pangolin and nextclade. | ||
* Generates report for base changes. | ||
|
||
###### 1. gms-artic in ngp-gms | ||
# Pipeline Diagram | ||
![gms-artic package](workflow-image/GMS-Artic_workflow.png) | ||
|
||
Find DAG and other figures [here](workflow-image/) | ||
|
||
# Requirements | ||
- Nextflow version >=20.10, <22.0 (tested OK on NextFlow version 20.10.0, version 21.10.6) | ||
- Singularity version 3.7.1 (tested OK) | ||
- Conda version >= 4.13.0 (tested OK) | ||
|
||
# Quick Start Guide | ||
## Test Data | ||
To test the pipeline, an [example dataset](./.github/data) for both Illumina and Nanopore (nanopolish, medaka) datafiles (from ConnerLab) provided. | ||
|
||
# parameters setup | ||
## primer scheme | ||
##### --scheme: To use the primer list, add --scheme to the CLI, eg., use 'nCoV-2019/V3' for artic primers or 'midnight-primer/V1' | ||
|
||
*for nanopore analysis (default is "midnight")* | ||
``` | ||
sample_name | ||
|___ fast5_pass/ | ||
|___ fastq_pass/ | ||
|___ sequencing_summary.txt | ||
``` | ||
*for illumina analysis* | ||
``` | ||
sample_name | ||
|___ fastq/ | ||
--scheme nCoV-2019/V3/ | ||
--scheme midnight-primers/V1/ | ||
--scheme eden-primers/V1/ | ||
``` | ||
#### Manual running of analysis pipeline | ||
###### 2. Run Illumina pipeline | ||
**To run the artic pipeline, please change the [nanopore.config](https://github.com/JD2112/gms-artic/blob/master/conf/nanopore.config) 'min_length' (default = 400) and 'max_length' (default = 700)** | ||
|
||
**For more parameters setup, please see the [ConnerLab documentation](ConnerLab-README.md)** | ||
|
||
## Run on local server | ||
### Requirements | ||
1. Containers: [Singularity](https://singularity-tutorial.github.io/01-installation/), [Docker](https://docs.docker.com/engine/install/) | ||
2. [Nextflow>=20](https://www.nextflow.io/docs/latest/getstarted.html) | ||
|
||
### Illumina pipeline | ||
``` | ||
$ nextflow run main.nf -profile singularity,sge \ | ||
nextflow run main.nf -profile singularity \ | ||
--illumina --prefix "test_illumina" \ | ||
--directory .github/data/fastqs/ \ | ||
--outdir illumina_test | ||
``` | ||
|
||
###### 3. Run Nanopore Pipeline | ||
###### **Deafult is "midnight" protocol** | ||
### Nanopore nanopolish pipeline | ||
``` | ||
$ nextflow run main.nf -profile singularity \ | ||
--nanopolish --prefix "midnight" \ | ||
--basecalled_fastq /home/test/fastq_pass/ \ | ||
--fast5_pass /home/test/fast5_pass/ \ | ||
--sequencing_summary /home/test/sequencing_summary_FAP82331_657703c9.txt \ | ||
--scheme-directory midnight-primer/V1/ \ | ||
--outdir /home/test/midnight_test -with-report midnight | ||
nextflow run main.nf -profile singularity \ | ||
--nanopolish --prefix "test_nanopore_nanopolish" \ | ||
--basecalled_fastq .github/data/nanopore/20200311_1427_X1_FAK72834_a3787181/fastq_pass/ \ | ||
--fast5_pass .github/data/nanopore/20200311_1427_X1_FAK72834_a3787181/fast5_pass/ \ | ||
--sequencing_summary .github/data/nanopore/20200311_1427_X1_FAK72834_a3787181/sequencing_summary_FAK72834_298b7829.txt \ | ||
--outdir nanopore_nanopolish | ||
``` | ||
|
||
###### --scheme: To use the primer list, add --scheme to the CLI, eg., use 'nCoV-2019/V3' for artic primers or 'midnight-primer/V1' | ||
|
||
#### Nanopore medaka pipeline | ||
``` | ||
--scheme nCoV-2019/V3/ | ||
--scheme midnight-primers/V1/ | ||
--scheme eden-primers/V1/ | ||
nextflow run main.nf -profile singularity \ | ||
--medaka --prefix "test_nanopore_medaka" \ | ||
--basecalled_fastq .github/data/nanopore/20200311_1427_X1_FAK72834_a3787181/fastq_pass/ \ | ||
--outdir nanopore_medaka | ||
``` | ||
###### **To run the artic pipeline, please change the [nanopore.config](https://github.com/JD2112/gms-artic/blob/master/conf/nanopore.config) 'min_length' (default = 400) and 'max_length' (default = 700)** | ||
|
||
## Run on NGP server | ||
### Datafile structure | ||
1. *for Nanopore analysis (default is "midnight")* | ||
``` | ||
sample_name | ||
|___ fast5_pass/ | ||
|___ fastq_pass/ | ||
|___ sequencing_summary.txt | ||
``` | ||
$ nextflow run main.nf -profile singularity,sge \ | ||
#### Run Nanopolish pipeline | ||
``` | ||
nextflow run main.nf -profile singularity,sge \ | ||
--nanopolish --prefix "test_nanopore" \ | ||
--basecalled_fastq .github/data/nanopore/20200311_1427_X1_FAK72834_a3787181/fastq_pass/ \ | ||
--fast5_pass .github/data/nanopore/20200311_1427_X1_FAK72834_a3787181/fast5_pass/ \ | ||
--sequencing_summary .github/data/nanopore/20200311_1427_X1_FAK72834_a3787181/sequencing_summary_FAK72834_298b7829.txt \ | ||
--outdir nanopore_test | ||
--outdir nanopore_test | ||
``` | ||
|
||
#### Run medaka pipeline | ||
``` | ||
#### To update your container image to the latest version from [dockerhub](https://hub.docker.com/orgs/genomicmedicinesweden/repositories), please delete your local image first before running the analysis pipeline. | ||
nextflow run main.nf -profile singularity,sge \ | ||
--medaka --prefix "test_nanopore_medaka" \ | ||
--basecalled_fastq .github/data/nanopore/20200311_1427_X1_FAK72834_a3787181/fastq_pass/ \ | ||
--outdir nanopore_medaka | ||
``` | ||
2. *for Illumina analysis* | ||
``` | ||
sample_name | ||
|___ fastq/ | ||
``` | ||
#### Run Illumina pipeline | ||
``` | ||
nextflow run main.nf -profile singularity,sge \ | ||
--illumina --prefix "test_illumina" \ | ||
--directory .github/data/fastqs/ \ | ||
--outdir illumina_test | ||
``` | ||
|
||
|
||
# Useful information | ||
1.To update your container image to the latest version from [dockerhub](https://hub.docker.com/orgs/genomicmedicinesweden/repositories), please delete your local image first before running the analysis pipeline. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.