Skip to content

Commit 9fbfd67

Browse files
authored
Merge pull request #97 from jfy133/add-taxprofiler
Add taxprofiler support for --nf_core_pipeline
2 parents ff79742 + 920c62f commit 9fbfd67

File tree

5 files changed

+21
-3
lines changed

5 files changed

+21
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
### Enhancements & fixes
99

10+
- [#97](https://github.com/nf-core/fetchngs/pull/97) - Add support for generating nf-core/taxprofiler compatible samplesheets.
11+
- Add `enum` field for `--nf_core_pipeline` to parameter schema so only accept supported pipelines are accepted
12+
1013
## [[1.6](https://github.com/nf-core/fetchngs/releases/tag/1.6)] - 2022-05-17
1114

1215
- [#57](https://github.com/nf-core/fetchngs/pull/57) - fetchngs fails if FTP is blocked

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,13 @@ Via a single file of ids, provided one-per-line (see [example input file](https:
4545

4646
### Samplesheet format
4747

48-
The columns in the auto-created samplesheet can be tailored to be accepted out-of-the-box by selected nf-core pipelines, these currently include [nf-core/rnaseq](https://nf-co.re/rnaseq/usage#samplesheet-input) and the Illumina processing mode of [nf-core/viralrecon](https://nf-co.re/viralrecon/usage#illumina-samplesheet-format). You can use the `--nf_core_pipeline` parameter to customise this behaviour e.g. `--nf_core_pipeline rnaseq`. More pipelines will be supported in due course as we adopt and standardise samplesheet input across nf-core.
48+
The columns in the auto-created samplesheet can be tailored to be accepted out-of-the-box by selected nf-core pipelines, these currently include:
49+
50+
- [nf-core/rnaseq](https://nf-co.re/rnaseq/usage#samplesheet-input)
51+
- Ilumina processing mode of [nf-core/viralrecon](https://nf-co.re/viralrecon/usage#illumina-samplesheet-format)
52+
- [nf-core/taxprofiler](https://nf-co.re/nf-core/taxprofiler)
53+
54+
You can use the `--nf_core_pipeline` parameter to customise this behaviour e.g. `--nf_core_pipeline rnaseq`. More pipelines will be supported in due course as we adopt and standardise samplesheet input across nf-core.
4955

5056
## Quick Start
5157

docs/usage.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,13 @@ The final sample information for the FastQ files used for samplesheet generation
5555

5656
### Samplesheet format
5757

58-
As a bonus, the columns in the auto-created samplesheet can be tailored to be accepted out-of-the-box by selected nf-core pipelines, these currently include [nf-core/rnaseq](https://nf-co.re/rnaseq/usage#samplesheet-input) and the Illumina processing mode of [nf-core/viralrecon](https://nf-co.re/viralrecon/usage#illumina-samplesheet-format). You can use the `--nf_core_pipeline` parameter to customise this behaviour e.g. `--nf_core_pipeline rnaseq`. More pipelines will be supported in due course as we adopt and standardise samplesheet input across nf-core. It is highly recommended that you double-check that all of the identifiers you defined using `--input` are represented in the samplesheet. Also, public databases don't reliably hold information such as strandedness information so you may need to amend these entries too if for example your samplesheet was created by providing `--nf_core_pipeline rnaseq`.
58+
As a bonus, the columns in the auto-created samplesheet can be tailored to be accepted out-of-the-box by selected nf-core pipelines, these currently include:
59+
60+
- [nf-core/rnaseq](https://nf-co.re/rnaseq/usage#samplesheet-input)
61+
- Ilumina processing mode of [nf-core/viralrecon](https://nf-co.re/viralrecon/usage#illumina-samplesheet-format)
62+
- [nf-core/taxprofiler](https://nf-co.re/nf-core/taxprofiler)
63+
64+
You can use the `--nf_core_pipeline` parameter to customise this behaviour e.g. `--nf_core_pipeline rnaseq`. More pipelines will be supported in due course as we adopt and standardise samplesheet input across nf-core. It is highly recommended that you double-check that all of the identifiers you defined using `--input` are represented in the samplesheet. Also, public databases don't reliably hold information such as strandedness information so you may need to amend these entries too if for example your samplesheet was created by providing `--nf_core_pipeline rnaseq`.
5965

6066
### Bypass `FTP` data download
6167

modules/local/sra_to_samplesheet.nf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ process SRA_TO_SAMPLESHEET {
3939
if (pipeline) {
4040
if (pipeline == 'rnaseq') {
4141
pipeline_map << [ strandedness: 'unstranded' ]
42+
} else if (pipeline == 'taxprofiler') {
43+
pipeline_map << [ fasta: '' ]
4244
}
4345
}
4446
pipeline_map << meta_map

nextflow_schema.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@
4343
"nf_core_pipeline": {
4444
"type": "string",
4545
"fa_icon": "fab fa-apple",
46-
"description": "Name of supported nf-core pipeline e.g. 'rnaseq'. A samplesheet for direct use with the pipeline will be created with the appropriate columns."
46+
"description": "Name of supported nf-core pipeline e.g. 'rnaseq'. A samplesheet for direct use with the pipeline will be created with the appropriate columns.",
47+
"enum": ["rnaseq", "viralrecon", "taxprofiler"]
4748
},
4849
"force_sratools_download": {
4950
"type": "boolean",

0 commit comments

Comments
 (0)