Skip to content

Commit 0f255c3

Browse files
authored
Merge branch 'dev' into nf-core-template-merge-2.14.1
2 parents eac360a + 2266191 commit 0f255c3

26 files changed

+1430
-85
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,5 @@ jobs:
3939
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
4040

4141
- name: Run pipeline with test data
42-
# TODO nf-core: You can customise CI pipeline run tests as required
43-
# For example: adding multiple test runs with different parameters
44-
# Remember that you can parallelise this by using strategy.matrix
4542
run: |
4643
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --outdir ./results

CITATIONS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414

1515
> Andrews, S. (2010). FastQC: A Quality Control Tool for High Throughput Sequence Data [Online].
1616
17+
- [fastp](https://www.ncbi.nlm.nih.gov/pubmed/30423086/)
18+
19+
> Chen S, Zhou Y, Chen Y, Gu J. fastp: an ultra-fast all-in-one FASTQ preprocessor. Bioinformatics. 2018 Sep 1;34(17):i884-i890. doi: 10.1093/bioinformatics/bty560. PubMed PMID: 30423086; PubMed Central PMCID: PMC6129281.
20+
1721
- [MultiQC](https://pubmed.ncbi.nlm.nih.gov/27312411/)
1822

1923
> Ewels P, Magnusson M, Lundin S, Käller M. MultiQC: summarize analysis results for multiple tools and samples in a single report. Bioinformatics. 2016 Oct 1;32(19):3047-8. doi: 10.1093/bioinformatics/btw354. Epub 2016 Jun 16. PubMed PMID: 27312411; PubMed Central PMCID: PMC5039924.

README.md

Lines changed: 11 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -19,46 +19,35 @@
1919

2020
## Introduction
2121

22-
**nf-core/demo** is a bioinformatics pipeline that ...
22+
**nf-core/demo** is a simple nf-core style bioinformatics pipeline for workshops and demonstrations. It was created using the nf-core template and is designed to run quickly using small test data files.
2323

24-
<!-- TODO nf-core:
25-
Complete this sentence with a 2-3 sentence summary of what types of data the pipeline ingests, a brief overview of the
26-
major pipeline sections and the types of output it produces. You're giving an overview to someone new
27-
to nf-core here, in 15-20 seconds. For an example, see https://github.com/nf-core/rnaseq/blob/master/README.md#introduction
28-
-->
24+
![nf-core/demo metro map](docs/images/nf-core-demo-subway.png)
2925

30-
<!-- TODO nf-core: Include a figure that guides the user through the major workflow steps. Many nf-core
31-
workflows use the "tube map" design for that. See https://nf-co.re/docs/contributing/design_guidelines#examples for examples. -->
32-
<!-- TODO nf-core: Fill in short bullet-pointed list of the default steps in the pipeline -->
33-
34-
1. Read QC ([`FastQC`](https://www.bioinformatics.babraham.ac.uk/projects/fastqc/))
35-
2. Present QC for raw reads ([`MultiQC`](http://multiqc.info/))
26+
1. Read QC ([`FASTQC`](https://www.bioinformatics.babraham.ac.uk/projects/fastqc/))
27+
2. Adapter and quality trimming ([`FASTP`](https://github.com/OpenGene/fastp))
28+
3. Present QC for raw reads ([`MULTIQC`](http://multiqc.info/))
3629

3730
## Usage
3831

3932
> [!NOTE]
4033
> If you are new to Nextflow and nf-core, please refer to [this page](https://nf-co.re/docs/usage/installation) on how to set-up Nextflow. Make sure to [test your setup](https://nf-co.re/docs/usage/introduction#how-to-run-a-pipeline) with `-profile test` before running the workflow on actual data.
4134
42-
<!-- TODO nf-core: Describe the minimum required steps to execute the pipeline, e.g. how to prepare samplesheets.
43-
Explain what rows and columns represent. For instance (please edit as appropriate):
44-
4535
First, prepare a samplesheet with your input data that looks as follows:
4636

4737
`samplesheet.csv`:
4838

4939
```csv
5040
sample,fastq_1,fastq_2
51-
CONTROL_REP1,AEG588A1_S1_L002_R1_001.fastq.gz,AEG588A1_S1_L002_R2_001.fastq.gz
41+
SAMPLE1_PE,https://raw.githubusercontent.com/nf-core/test-datasets/viralrecon/illumina/amplicon/sample1_R1.fastq.gz,https://raw.githubusercontent.com/nf-core/test-datasets/viralrecon/illumina/amplicon/sample1_R2.fastq.gz
42+
SAMPLE2_PE,https://raw.githubusercontent.com/nf-core/test-datasets/viralrecon/illumina/amplicon/sample2_R1.fastq.gz,https://raw.githubusercontent.com/nf-core/test-datasets/viralrecon/illumina/amplicon/sample2_R2.fastq.gz
43+
SAMPLE3_SE,https://raw.githubusercontent.com/nf-core/test-datasets/viralrecon/illumina/amplicon/sample1_R1.fastq.gz,
44+
SAMPLE3_SE,https://raw.githubusercontent.com/nf-core/test-datasets/viralrecon/illumina/amplicon/sample2_R1.fastq.gz,
5245
```
5346

5447
Each row represents a fastq file (single-end) or a pair of fastq files (paired end).
5548

56-
-->
57-
5849
Now, you can run the pipeline using:
5950

60-
<!-- TODO nf-core: update the following command to include all required parameters for a minimal example -->
61-
6251
```bash
6352
nextflow run nf-core/demo \
6453
-profile <docker/singularity/.../institute> \
@@ -80,11 +69,9 @@ For more details about the output files and reports, please refer to the
8069

8170
## Credits
8271

83-
nf-core/demo was originally written by Christopher Hakkaart.
84-
85-
We thank the following people for their extensive assistance in the development of this pipeline:
72+
nf-core/demo was originally written by Chris Hakkaart ([@christopher-hakkaart](https://github.com/christopher-hakkaart)).
8673

87-
<!-- TODO nf-core: If applicable, make list of people who have also contributed -->
74+
<!-- We thank the following people for their extensive assistance in the development of this pipeline: -->
8875

8976
## Contributions and Support
9077

@@ -97,8 +84,6 @@ For further information or help, don't hesitate to get in touch on the [Slack `#
9784
<!-- TODO nf-core: Add citation for pipeline after first release. Uncomment lines below and update Zenodo doi and badge at the top of this file. -->
9885
<!-- If you use nf-core/demo for your analysis, please cite it using the following doi: [10.5281/zenodo.XXXXXX](https://doi.org/10.5281/zenodo.XXXXXX) -->
9986

100-
<!-- TODO nf-core: Add bibliography of tools and data used in your pipeline -->
101-
10287
An extensive list of references for the tools used by the pipeline can be found in the [`CITATIONS.md`](CITATIONS.md) file.
10388

10489
You can cite the `nf-core` publication as follows:

assets/methods_description_template.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ description: "Suggested text and references to use when describing pipeline usag
33
section_name: "nf-core/demo Methods Description"
44
section_href: "https://github.com/nf-core/demo"
55
plot_type: "html"
6-
## TODO nf-core: Update the HTML below to your preferred methods description, e.g. add publication citation for this pipeline
76
## You inject any metadata in the Nextflow '${workflow}' object
87
data: |
98
<h4>Methods</h4>

conf/base.config

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
process {
1212

13-
// TODO nf-core: Check the defaults for all processes
1413
cpus = { check_max( 1 * task.attempt, 'cpus' ) }
1514
memory = { check_max( 6.GB * task.attempt, 'memory' ) }
1615
time = { check_max( 4.h * task.attempt, 'time' ) }
@@ -20,12 +19,6 @@ process {
2019
maxErrors = '-1'
2120

2221
// Process-specific resource requirements
23-
// NOTE - Please try and re-use the labels below as much as possible.
24-
// These labels are used and recognised by default in DSL2 files hosted on nf-core/modules.
25-
// If possible, it would be nice to keep the same label naming convention when
26-
// adding in your local modules too.
27-
// TODO nf-core: Customise requirements for specific processes.
28-
// See https://www.nextflow.io/docs/latest/config.html#config-process-selectors
2922
withLabel:process_single {
3023
cpus = { check_max( 1 , 'cpus' ) }
3124
memory = { check_max( 6.GB * task.attempt, 'memory' ) }

conf/modules.config

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,20 @@ process {
2020

2121
withName: FASTQC {
2222
ext.args = '--quiet'
23+
publishDir = [
24+
path: { "${params.outdir}/fastqc/${meta.id}" },
25+
mode: params.publish_dir_mode,
26+
pattern: "*.{html,json}"
27+
]
28+
}
29+
30+
31+
withName: 'FASTP' {
32+
publishDir = [
33+
path: { "${params.outdir}/fastp/${meta.id}" },
34+
mode: params.publish_dir_mode,
35+
pattern: "*.{html,json,log}"
36+
]
2337
}
2438

2539
withName: 'MULTIQC' {

conf/test.config

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ params {
2020
max_time = '6.h'
2121

2222
// Input data
23-
// TODO nf-core: Specify the paths to your test data on nf-core/test-datasets
24-
// TODO nf-core: Give any required params for the test so that command line flags are not needed
2523
input = params.pipelines_testdata_base_path + 'viralrecon/samplesheet/samplesheet_test_illumina_amplicon.csv'
2624

2725
// Genome references

conf/test_full.config

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ params {
1515
config_profile_description = 'Full test dataset to check pipeline function'
1616

1717
// Input data for full size test
18-
// TODO nf-core: Specify the paths to your full test data ( on nf-core/test-datasets or directly in repositories, e.g. SRA)
19-
// TODO nf-core: Give any required params for the test so that command line flags are not needed
2018
input = params.pipelines_testdata_base_path + 'viralrecon/samplesheet/samplesheet_full_illumina_amplicon.csv'
2119

2220
// Genome references
22.4 KB
Loading

0 commit comments

Comments
 (0)