Skip to content

Commit d930935

Browse files
committed
Merge remote-tracking branch 'origin/dev' into multiple-seqfu-reports
2 parents 4d8c75b + ae2d549 commit d930935

File tree

12 files changed

+811
-28
lines changed

12 files changed

+811
-28
lines changed

.github/workflows/awsfulltest.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,6 @@ jobs:
4545
4646
- name: Launch workflow via Seqera Platform
4747
uses: seqeralabs/action-tower-launch@v2
48-
# TODO nf-core: You can customise AWS full pipeline tests as required
49-
# Add full size test data (but still relatively small datasets for few samples)
50-
# on the `test_full.config` test runs with only one set of parameters
5148
with:
5249
workspace_id: ${{ secrets.TOWER_WORKSPACE_ID }}
5350
access_token: ${{ secrets.TOWER_ACCESS_TOKEN }}

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,13 @@ Initial release of nf-core/seqinspector, created with the [nf-core](https://nf-c
1919
- [#51](https://github.com/nf-core/seqinspector/pull/51) Add nf-test to CI.
2020
- [#63](https://github.com/nf-core/seqinspector/pull/63) Contribution guidelines added about displaying results for new tools
2121
- [#53](https://github.com/nf-core/seqinspector/pull/53) Add FastQ-Screen database multiplexing and limit scope of nf-test in CI.
22+
- [#96](https://github.com/nf-core/seqinspector/pull/96) Added missing citations to citation tool
23+
- [#103](https://github.com/nf-core/seqinspector/pull/103) Configure full-tests
2224

2325
### `Fixed`
2426

2527
- [#71](https://github.com/nf-core/seqinspector/pull/71) FASTQSCREEN does not fail when multiple reads are provided.
28+
- [#99](https://github.com/nf-core/seqinspector/pull/99) Fix group reports for paired reads
2629

2730
### `Dependencies`
2831

conf/test_full.config

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,13 @@
1010
----------------------------------------------------------------------------------------
1111
*/
1212

13+
1314
params {
1415
config_profile_name = 'Full test profile'
1516
config_profile_description = 'Full test dataset to check pipeline function'
1617

1718
// 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
20-
input = params.pipelines_testdata_base_path + 'viralrecon/samplesheet/samplesheet_full_illumina_amplicon.csv'
19+
input = params.pipelines_testdata_base_path + 'seqinspector/full_tests/SampleSheet.csv'
2120

2221
// Genome references
2322
genome = 'R64-1-1'
15 KB
Loading

docs/images/nfcore-seqinspector-logo-hex-dark.svg

Lines changed: 229 additions & 0 deletions
Loading
15.2 KB
Loading

docs/images/nfcore-seqinspector-logo-hex-light.svg

Lines changed: 255 additions & 0 deletions
Loading

subworkflows/local/utils_nfcore_seqinspector_pipeline/main.nf

Lines changed: 16 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -229,27 +229,27 @@ def genomeExistsError() {
229229
// Generate methods description for MultiQC
230230
//
231231
def toolCitationText() {
232-
// TODO nf-core: Optionally add in-text citation tools to this list.
233-
// Can use ternary operators to dynamically construct based conditions, e.g. params["run_xyz"] ? "Tool (Foo et al. 2023)" : "",
234-
// Uncomment function in methodsDescriptionText to render in MultiQC report
235232
def citation_text = [
236-
"Tools used in the workflow included:",
237-
"FastQC (Andrews 2010),",
238-
"MultiQC (Ewels et al. 2016)",
239-
"."
240-
].join(' ').trim()
233+
"Tools used in the workflow included:",
234+
"FastQC (Andrews 2010),",
235+
"MultiQC (Ewels et al. 2016),",
236+
"FastQ Screen (Wingett & Andrews 2018)",
237+
params.sample_size > 0 ? "Seqtk (Li 2021)," : "",
238+
"SeqFu (Telatin et al. 2021),",
239+
"."
240+
].join(' ').trim()
241241

242242
return citation_text
243243
}
244244

245245
def toolBibliographyText() {
246-
// TODO nf-core: Optionally add bibliographic entries to this list.
247-
// Can use ternary operators to dynamically construct based conditions, e.g. params["run_xyz"] ? "<li>Author (2023) Pub name, Journal, DOI</li>" : "",
248-
// Uncomment function in methodsDescriptionText to render in MultiQC report
249246
def reference_text = [
250-
"<li>Andrews S, (2010) FastQC, URL: https://www.bioinformatics.babraham.ac.uk/projects/fastqc/).</li>",
251-
"<li>Ewels, P., Magnusson, M., Lundin, S., & Käller, M. (2016). MultiQC: summarize analysis results for multiple tools and samples in a single report. Bioinformatics , 32(19), 3047–3048. doi: /10.1093/bioinformatics/btw354</li>"
252-
].join(' ').trim()
247+
"<li>Andrews S, (2010) FastQC, URL: https://www.bioinformatics.babraham.ac.uk/projects/fastqc/.</li>",
248+
"<li>Ewels, P., Magnusson, M., Lundin, S., & Käller, M. (2016). MultiQC: summarize analysis results for multiple tools and samples in a single report. Bioinformatics, 32(19), 3047–3048. doi: /10.1093/bioinformatics/btw354</li>",
249+
"<li>Wingett SW, Andrews S. FastQ Screen: A tool for multi-genome mapping and quality control. F1000Res. 2018 Aug 24 [revised 2018 Jan 1];7:1338. doi: 10.12688/f1000research.15931.2. eCollection</li>",
250+
params.sample_size > 0 ? "<li>Li, H. SeqTk. Available online: https://github.com/lh3/seqtk (accessed on 6 May 2021)</li>" : "",
251+
"<li>Telatin, A.; Fariselli, P.; Birolo, G. SeqFu: A Suite of Utilities for the Robust and Reproducible Manipulation of Sequence Files. Bioengineering 2021, 8, 59. https://doi.org/10.3390/bioengineering8050059</li>"
252+
].join(' ').trim()
253253

254254
return reference_text
255255
}
@@ -275,13 +275,8 @@ def methodsDescriptionText(mqc_methods_yaml) {
275275
meta["nodoi_text"] = meta.manifest_map.doi ? "" : "<li>If available, make sure to update the text to include the Zenodo DOI of version of the pipeline used. </li>"
276276

277277
// Tool references
278-
meta["tool_citations"] = ""
279-
meta["tool_bibliography"] = ""
280-
281-
// TODO nf-core: Only uncomment below if logic in toolCitationText/toolBibliographyText has been filled!
282-
// meta["tool_citations"] = toolCitationText().replaceAll(", \\.", ".").replaceAll("\\. \\.", ".").replaceAll(", \\.", ".")
283-
// meta["tool_bibliography"] = toolBibliographyText()
284-
278+
meta["tool_citations"] = toolCitationText().replaceAll(", \\.", ".").replaceAll("\\. \\.", ".").replaceAll(", \\.", ".")
279+
meta["tool_bibliography"] = toolBibliographyText()
285280

286281
def methods_text = mqc_methods_yaml.text
287282

tests/MiSeq_PairedEnd.main.nf.test

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
nextflow_pipeline {
2+
3+
name "Test Workflow main.nf on MiSeq data"
4+
script "../main.nf"
5+
tag "seqinspector"
6+
tag "PIPELINE"
7+
8+
test("MiSeq data test") {
9+
10+
when {
11+
config "./MiSeq_PairedEnd.main.nf.test.config"
12+
params {
13+
outdir = "$outputDir"
14+
}
15+
}
16+
17+
then {
18+
// stable_name: All files + folders in ${params.outdir}/ with a stable name
19+
def stable_name = getAllFilesFromDir(
20+
params.outdir,
21+
relative: true, includeDir: true, ignore: ['pipeline_info/*.{html,json,txt}']
22+
)
23+
// stable_path: All files in ${params.outdir}/ with stable content
24+
def stable_path = getAllFilesFromDir(
25+
params.outdir,
26+
ignoreFile: 'tests/.nftignore'
27+
)
28+
assertAll(
29+
{ assert workflow.success},
30+
{ assert snapshot(
31+
// Number of successful tasks
32+
workflow.trace.succeeded().size(),
33+
// pipeline versions.yml file for multiqc from which Nextflow version is removed because we tests pipelines on multiple Nextflow versions
34+
removeNextflowVersion("$outputDir/pipeline_info/nf_core_seqinspector_software_mqc_versions.yml"),
35+
// All stable path names, with a relative path
36+
stable_name,
37+
// All files with stable contents
38+
stable_path
39+
).match() }
40+
)
41+
}
42+
}
43+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Load the basic test config
2+
includeConfig 'nextflow.config'
3+
4+
// Load the correct samplesheet for that test
5+
params {
6+
input = params.pipelines_testdata_base_path + 'seqinspector/testdata/Miseq_PairedEnd/samplesheet.csv'
7+
}

0 commit comments

Comments
 (0)