Skip to content

Commit 00470cb

Browse files
committed
Add test with paired end reads
1 parent cd97466 commit 00470cb

File tree

3 files changed

+213
-0
lines changed

3 files changed

+213
-0
lines changed

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+
}
Lines changed: 163 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,163 @@
1+
{
2+
"MiSeq data test": {
3+
"content": [
4+
7,
5+
{
6+
"FASTQC": {
7+
"fastqc": "0.12.1"
8+
},
9+
"FASTQSCREEN_FASTQSCREEN": {
10+
"fastqscreen": "0.16.0"
11+
},
12+
"SEQFU_STATS": {
13+
"seqfu": "1.20.3"
14+
},
15+
"Workflow": {
16+
"nf-core/seqinspector": "v1.0dev"
17+
}
18+
},
19+
[
20+
"fastqc",
21+
"fastqc/SAMPLE_PAIRED_END_1_1_1_fastqc.html",
22+
"fastqc/SAMPLE_PAIRED_END_1_1_1_fastqc.zip",
23+
"fastqc/SAMPLE_PAIRED_END_1_1_2_fastqc.html",
24+
"fastqc/SAMPLE_PAIRED_END_1_1_2_fastqc.zip",
25+
"fastqc/SAMPLE_PAIRED_END_2_2_1_fastqc.html",
26+
"fastqc/SAMPLE_PAIRED_END_2_2_1_fastqc.zip",
27+
"fastqc/SAMPLE_PAIRED_END_2_2_2_fastqc.html",
28+
"fastqc/SAMPLE_PAIRED_END_2_2_2_fastqc.zip",
29+
"fastqscreen",
30+
"fastqscreen/SAMPLE_PAIRED_END_1_1_1_screen.html",
31+
"fastqscreen/SAMPLE_PAIRED_END_1_1_1_screen.png",
32+
"fastqscreen/SAMPLE_PAIRED_END_1_1_1_screen.txt",
33+
"fastqscreen/SAMPLE_PAIRED_END_1_1_2_screen.html",
34+
"fastqscreen/SAMPLE_PAIRED_END_1_1_2_screen.png",
35+
"fastqscreen/SAMPLE_PAIRED_END_1_1_2_screen.txt",
36+
"fastqscreen/SAMPLE_PAIRED_END_2_2_1_screen.html",
37+
"fastqscreen/SAMPLE_PAIRED_END_2_2_1_screen.png",
38+
"fastqscreen/SAMPLE_PAIRED_END_2_2_1_screen.txt",
39+
"fastqscreen/SAMPLE_PAIRED_END_2_2_2_screen.html",
40+
"fastqscreen/SAMPLE_PAIRED_END_2_2_2_screen.png",
41+
"fastqscreen/SAMPLE_PAIRED_END_2_2_2_screen.txt",
42+
"multiqc",
43+
"multiqc/global_report",
44+
"multiqc/global_report/multiqc_data",
45+
"multiqc/global_report/multiqc_data/fastq_screen_plot.txt",
46+
"multiqc/global_report/multiqc_data/fastqc-status-check-heatmap.txt",
47+
"multiqc/global_report/multiqc_data/fastqc_adapter_content_plot.txt",
48+
"multiqc/global_report/multiqc_data/fastqc_per_base_n_content_plot.txt",
49+
"multiqc/global_report/multiqc_data/fastqc_per_base_sequence_quality_plot.txt",
50+
"multiqc/global_report/multiqc_data/fastqc_per_sequence_gc_content_plot_Counts.txt",
51+
"multiqc/global_report/multiqc_data/fastqc_per_sequence_gc_content_plot_Percentages.txt",
52+
"multiqc/global_report/multiqc_data/fastqc_per_sequence_quality_scores_plot.txt",
53+
"multiqc/global_report/multiqc_data/fastqc_sequence_counts_plot.txt",
54+
"multiqc/global_report/multiqc_data/fastqc_sequence_duplication_levels_plot.txt",
55+
"multiqc/global_report/multiqc_data/fastqc_top_overrepresented_sequences_table.txt",
56+
"multiqc/global_report/multiqc_data/multiqc.log",
57+
"multiqc/global_report/multiqc_data/multiqc_SAMPLE_PAIRED_END_1_1.txt",
58+
"multiqc/global_report/multiqc_data/multiqc_SAMPLE_PAIRED_END_2_2.txt",
59+
"multiqc/global_report/multiqc_data/multiqc_citations.txt",
60+
"multiqc/global_report/multiqc_data/multiqc_data.json",
61+
"multiqc/global_report/multiqc_data/multiqc_fastq_screen.txt",
62+
"multiqc/global_report/multiqc_data/multiqc_fastqc.txt",
63+
"multiqc/global_report/multiqc_data/multiqc_general_stats.txt",
64+
"multiqc/global_report/multiqc_data/multiqc_software_versions.txt",
65+
"multiqc/global_report/multiqc_data/multiqc_sources.txt",
66+
"multiqc/global_report/multiqc_plots",
67+
"multiqc/global_report/multiqc_plots/pdf",
68+
"multiqc/global_report/multiqc_plots/pdf/SAMPLE_PAIRED_END_1_1.pdf",
69+
"multiqc/global_report/multiqc_plots/pdf/SAMPLE_PAIRED_END_2_2.pdf",
70+
"multiqc/global_report/multiqc_plots/pdf/fastq_screen_plot-cnt.pdf",
71+
"multiqc/global_report/multiqc_plots/pdf/fastq_screen_plot-pct.pdf",
72+
"multiqc/global_report/multiqc_plots/pdf/fastqc-status-check-heatmap.pdf",
73+
"multiqc/global_report/multiqc_plots/pdf/fastqc_adapter_content_plot.pdf",
74+
"multiqc/global_report/multiqc_plots/pdf/fastqc_per_base_n_content_plot.pdf",
75+
"multiqc/global_report/multiqc_plots/pdf/fastqc_per_base_sequence_quality_plot.pdf",
76+
"multiqc/global_report/multiqc_plots/pdf/fastqc_per_sequence_gc_content_plot_Counts.pdf",
77+
"multiqc/global_report/multiqc_plots/pdf/fastqc_per_sequence_gc_content_plot_Percentages.pdf",
78+
"multiqc/global_report/multiqc_plots/pdf/fastqc_per_sequence_quality_scores_plot.pdf",
79+
"multiqc/global_report/multiqc_plots/pdf/fastqc_sequence_counts_plot-cnt.pdf",
80+
"multiqc/global_report/multiqc_plots/pdf/fastqc_sequence_counts_plot-pct.pdf",
81+
"multiqc/global_report/multiqc_plots/pdf/fastqc_sequence_duplication_levels_plot.pdf",
82+
"multiqc/global_report/multiqc_plots/pdf/fastqc_top_overrepresented_sequences_table.pdf",
83+
"multiqc/global_report/multiqc_plots/pdf/general_stats_table.pdf",
84+
"multiqc/global_report/multiqc_plots/png",
85+
"multiqc/global_report/multiqc_plots/png/SAMPLE_PAIRED_END_1_1.png",
86+
"multiqc/global_report/multiqc_plots/png/SAMPLE_PAIRED_END_2_2.png",
87+
"multiqc/global_report/multiqc_plots/png/fastq_screen_plot-cnt.png",
88+
"multiqc/global_report/multiqc_plots/png/fastq_screen_plot-pct.png",
89+
"multiqc/global_report/multiqc_plots/png/fastqc-status-check-heatmap.png",
90+
"multiqc/global_report/multiqc_plots/png/fastqc_adapter_content_plot.png",
91+
"multiqc/global_report/multiqc_plots/png/fastqc_per_base_n_content_plot.png",
92+
"multiqc/global_report/multiqc_plots/png/fastqc_per_base_sequence_quality_plot.png",
93+
"multiqc/global_report/multiqc_plots/png/fastqc_per_sequence_gc_content_plot_Counts.png",
94+
"multiqc/global_report/multiqc_plots/png/fastqc_per_sequence_gc_content_plot_Percentages.png",
95+
"multiqc/global_report/multiqc_plots/png/fastqc_per_sequence_quality_scores_plot.png",
96+
"multiqc/global_report/multiqc_plots/png/fastqc_sequence_counts_plot-cnt.png",
97+
"multiqc/global_report/multiqc_plots/png/fastqc_sequence_counts_plot-pct.png",
98+
"multiqc/global_report/multiqc_plots/png/fastqc_sequence_duplication_levels_plot.png",
99+
"multiqc/global_report/multiqc_plots/png/fastqc_top_overrepresented_sequences_table.png",
100+
"multiqc/global_report/multiqc_plots/png/general_stats_table.png",
101+
"multiqc/global_report/multiqc_plots/svg",
102+
"multiqc/global_report/multiqc_plots/svg/SAMPLE_PAIRED_END_1_1.svg",
103+
"multiqc/global_report/multiqc_plots/svg/SAMPLE_PAIRED_END_2_2.svg",
104+
"multiqc/global_report/multiqc_plots/svg/fastq_screen_plot-cnt.svg",
105+
"multiqc/global_report/multiqc_plots/svg/fastq_screen_plot-pct.svg",
106+
"multiqc/global_report/multiqc_plots/svg/fastqc-status-check-heatmap.svg",
107+
"multiqc/global_report/multiqc_plots/svg/fastqc_adapter_content_plot.svg",
108+
"multiqc/global_report/multiqc_plots/svg/fastqc_per_base_n_content_plot.svg",
109+
"multiqc/global_report/multiqc_plots/svg/fastqc_per_base_sequence_quality_plot.svg",
110+
"multiqc/global_report/multiqc_plots/svg/fastqc_per_sequence_gc_content_plot_Counts.svg",
111+
"multiqc/global_report/multiqc_plots/svg/fastqc_per_sequence_gc_content_plot_Percentages.svg",
112+
"multiqc/global_report/multiqc_plots/svg/fastqc_per_sequence_quality_scores_plot.svg",
113+
"multiqc/global_report/multiqc_plots/svg/fastqc_sequence_counts_plot-cnt.svg",
114+
"multiqc/global_report/multiqc_plots/svg/fastqc_sequence_counts_plot-pct.svg",
115+
"multiqc/global_report/multiqc_plots/svg/fastqc_sequence_duplication_levels_plot.svg",
116+
"multiqc/global_report/multiqc_plots/svg/fastqc_top_overrepresented_sequences_table.svg",
117+
"multiqc/global_report/multiqc_plots/svg/general_stats_table.svg",
118+
"multiqc/global_report/multiqc_report.html",
119+
"pipeline_info",
120+
"pipeline_info/nf_core_seqinspector_software_mqc_versions.yml",
121+
"seqfu_stats",
122+
"seqfu_stats/SAMPLE_PAIRED_END_1_1.tsv",
123+
"seqfu_stats/SAMPLE_PAIRED_END_1_1_mqc.txt",
124+
"seqfu_stats/SAMPLE_PAIRED_END_2_2.tsv",
125+
"seqfu_stats/SAMPLE_PAIRED_END_2_2_mqc.txt"
126+
],
127+
[
128+
"SAMPLE_PAIRED_END_1_1_1_screen.png:md5,f52ddd0e65f23f68dd8d58d5453417db",
129+
"SAMPLE_PAIRED_END_1_1_1_screen.txt:md5,921b08eeb461a2aa1bd42bba53900f70",
130+
"SAMPLE_PAIRED_END_1_1_2_screen.png:md5,908f4fceea8aa546106efdaa7ca78f7d",
131+
"SAMPLE_PAIRED_END_1_1_2_screen.txt:md5,e9ea5789e356f666de27ba658704e80d",
132+
"SAMPLE_PAIRED_END_2_2_1_screen.png:md5,48d546767ed2a34a1eda59d97dd00c18",
133+
"SAMPLE_PAIRED_END_2_2_1_screen.txt:md5,a5b047f495d01bf9dcb0ae516d3c7fc3",
134+
"SAMPLE_PAIRED_END_2_2_2_screen.png:md5,e3684b17339d16e6fb64ace7593cc388",
135+
"SAMPLE_PAIRED_END_2_2_2_screen.txt:md5,fc95e5058e764596d5da182cbc0614cf",
136+
"fastq_screen_plot.txt:md5,642264b93871c724aaa5d38b91c752dd",
137+
"fastqc-status-check-heatmap.txt:md5,8e29ad6b23e03267c33bd9ed3385a44b",
138+
"fastqc_adapter_content_plot.txt:md5,46fbd727a4996a3f0310d0423c628445",
139+
"fastqc_per_base_n_content_plot.txt:md5,4eca1ef40d4d3d318b82e68e9fa3c589",
140+
"fastqc_per_base_sequence_quality_plot.txt:md5,218757a51c3de79a39a704c979df03da",
141+
"fastqc_per_sequence_gc_content_plot_Counts.txt:md5,a4035ac9f0a0c07574130758b06630d7",
142+
"fastqc_per_sequence_gc_content_plot_Percentages.txt:md5,637b937e023c84115ec06b529cc8ec1b",
143+
"fastqc_per_sequence_quality_scores_plot.txt:md5,47d60153a430e2b8da51655704c2b31b",
144+
"fastqc_sequence_counts_plot.txt:md5,10737092a3473fba81fbe49555512b2b",
145+
"fastqc_sequence_duplication_levels_plot.txt:md5,6412f57686de02e1f1c3751a7ca2be8b",
146+
"multiqc_SAMPLE_PAIRED_END_1_1.txt:md5,f6a5c7426b2c70dba8566b1f27d27fbf",
147+
"multiqc_SAMPLE_PAIRED_END_2_2.txt:md5,f531e01892d985ca20fc4924dec7b9f2",
148+
"multiqc_citations.txt:md5,5f52d7a0141e4234c6069df9ef575c9a",
149+
"multiqc_fastq_screen.txt:md5,5ef00028497d3271c9f0ea9a961db1e5",
150+
"multiqc_fastqc.txt:md5,bc499ad273fd1c887056c31b82544984",
151+
"SAMPLE_PAIRED_END_1_1.tsv:md5,bbd911ff3fa43212dfd4c5a5872dbdb6",
152+
"SAMPLE_PAIRED_END_1_1_mqc.txt:md5,cd60f746b6749cc66213d031af1b931c",
153+
"SAMPLE_PAIRED_END_2_2.tsv:md5,152566a128dd657da33465b4966b5799",
154+
"SAMPLE_PAIRED_END_2_2_mqc.txt:md5,8a3296956e094e3a95e28431e6009c40"
155+
]
156+
],
157+
"meta": {
158+
"nf-test": "0.9.0",
159+
"nextflow": "24.10.4"
160+
},
161+
"timestamp": "2025-03-25T10:33:30.467558"
162+
}
163+
}

0 commit comments

Comments
 (0)