Skip to content

Commit e73e1cc

Browse files
authored
Merge pull request #99 from Aratz/dev
Fix group reports for paired reads
2 parents cd97466 + 9c34a5b commit e73e1cc

File tree

5 files changed

+307
-1
lines changed

5 files changed

+307
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Initial release of nf-core/seqinspector, created with the [nf-core](https://nf-c
2424
### `Fixed`
2525

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

2829
### `Dependencies`
2930

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)