Skip to content

Commit 8e115d6

Browse files
committed
nf-core lint
1 parent b17aca4 commit 8e115d6

12 files changed

Lines changed: 646 additions & 84 deletions

.nf-core.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
lint:
2+
files_exist:
3+
- tests/default.nf.test
4+
files_unchanged:
5+
- .github/CONTRIBUTING.md
26
nextflow_config:
37
- config_defaults:
48
- params.fastq_screen_references

ro-crate-metadata.json

Lines changed: 58 additions & 18 deletions
Large diffs are not rendered by default.

tests/MiSeq.main.nf.test

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ nextflow_pipeline {
2828
assertAll(
2929
{ assert workflow.success},
3030
{ assert snapshot(
31-
// Number of successful tasks
32-
workflow.trace.succeeded().size(),
3331
// pipeline versions.yml file for multiqc from which Nextflow version is removed because we tests pipelines on multiple Nextflow versions
3432
removeNextflowVersion("$outputDir/pipeline_info/nf_core_seqinspector_software_mqc_versions.yml"),
3533
// All stable path names, with a relative path

tests/MiSeq.main.nf.test.snap

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
},
3535
"MiSeq data test (single end reads)": {
3636
"content": [
37-
6,
3837
{
3938
"BWAMEM2_INDEX": {
4039
"bwamem2": "2.2.1"
@@ -179,7 +178,7 @@
179178
"nf-test": "0.9.3",
180179
"nextflow": "25.10.0"
181180
},
182-
"timestamp": "2025-11-06T17:09:30.687814423"
181+
"timestamp": "2025-11-07T10:23:17.145777453"
183182
},
184183
"Miseq data test (skip fastqc)": {
185184
"content": [

tests/MiSeq_PairedEnd.main.nf.test

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ nextflow_pipeline {
2828
assertAll(
2929
{ assert workflow.success},
3030
{ assert snapshot(
31-
// Number of successful tasks
32-
workflow.trace.succeeded().size(),
3331
// pipeline versions.yml file for multiqc from which Nextflow version is removed because we tests pipelines on multiple Nextflow versions
3432
removeNextflowVersion("$outputDir/pipeline_info/nf_core_seqinspector_software_mqc_versions.yml"),
3533
// All stable path names, with a relative path

tests/MiSeq_PairedEnd.main.nf.test.snap

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"MiSeq data test (paired end reads)": {
33
"content": [
4-
11,
54
{
65
"BWAMEM2_INDEX": {
76
"bwamem2": "2.2.1"
@@ -248,6 +247,6 @@
248247
"nf-test": "0.9.3",
249248
"nextflow": "25.10.0"
250249
},
251-
"timestamp": "2025-11-06T17:11:17.153150613"
250+
"timestamp": "2025-11-07T10:24:43.782493978"
252251
}
253252
}

tests/NovaSeq6000.main.nf.test

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ nextflow_pipeline {
2828
assertAll(
2929
{ assert workflow.success},
3030
{ assert snapshot(
31-
// Number of successful tasks
32-
workflow.trace.succeeded().size(),
3331
// pipeline versions.yml file for multiqc from which Nextflow version is removed because we tests pipelines on multiple Nextflow versions
3432
removeNextflowVersion("$outputDir/pipeline_info/nf_core_seqinspector_software_mqc_versions.yml"),
3533
// All stable path names, with a relative path

tests/NovaSeq6000.main.nf.test.snap

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"NovaSeq6000 data test": {
33
"content": [
4-
26,
54
{
65
"BWAMEM2_INDEX": {
76
"bwamem2": "2.2.1"
@@ -552,6 +551,6 @@
552551
"nf-test": "0.9.3",
553552
"nextflow": "25.10.0"
554553
},
555-
"timestamp": "2025-11-06T17:12:19.300655258"
554+
"timestamp": "2025-11-07T10:25:42.576692828"
556555
}
557556
}

tests/NovaSeq6000.main_subsample.nf.test

Lines changed: 18 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -15,35 +15,26 @@ nextflow_pipeline {
1515
}
1616

1717
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+
)
1828
assertAll(
19-
{ assert workflow.success },
29+
{ assert workflow.success},
2030
{ assert snapshot(
21-
path("$outputDir/multiqc/global_report/multiqc_data/multiqc_citations.txt"),
22-
path("$outputDir/multiqc/global_report/multiqc_data/multiqc_fastqc.txt"),
23-
path("$outputDir/multiqc/global_report/multiqc_data/multiqc_general_stats.txt"),
24-
path("$outputDir/multiqc/global_report/multiqc_data/multiqc_fastq_screen.txt"),
25-
26-
path("$outputDir/multiqc/group_reports/lane1/multiqc_data/multiqc_citations.txt"),
27-
path("$outputDir/multiqc/group_reports/lane1/multiqc_data/multiqc_fastqc.txt"),
28-
path("$outputDir/multiqc/group_reports/lane1/multiqc_data/multiqc_general_stats.txt"),
29-
path("$outputDir/multiqc/group_reports/lane1/multiqc_data/multiqc_fastq_screen.txt"),
30-
31-
path("$outputDir/multiqc/group_reports/group1/multiqc_data/multiqc_citations.txt"),
32-
path("$outputDir/multiqc/group_reports/group1/multiqc_data/multiqc_fastqc.txt"),
33-
path("$outputDir/multiqc/group_reports/group1/multiqc_data/multiqc_general_stats.txt"),
34-
path("$outputDir/multiqc/group_reports/group1/multiqc_data/multiqc_fastq_screen.txt"),
35-
36-
path("$outputDir/multiqc/group_reports/group2/multiqc_data/multiqc_citations.txt"),
37-
path("$outputDir/multiqc/group_reports/group2/multiqc_data/multiqc_fastqc.txt"),
38-
path("$outputDir/multiqc/group_reports/group2/multiqc_data/multiqc_general_stats.txt"),
39-
path("$outputDir/multiqc/group_reports/group2/multiqc_data/multiqc_fastq_screen.txt"),
40-
41-
path("$outputDir/multiqc/group_reports/test/multiqc_data/multiqc_citations.txt"),
42-
path("$outputDir/multiqc/group_reports/test/multiqc_data/multiqc_fastqc.txt"),
43-
path("$outputDir/multiqc/group_reports/test/multiqc_data/multiqc_general_stats.txt"),
44-
path("$outputDir/multiqc/group_reports/test/multiqc_data/multiqc_fastq_screen.txt"),
45-
).match()
46-
},
31+
// pipeline versions.yml file for multiqc from which Nextflow version is removed because we tests pipelines on multiple Nextflow versions
32+
removeNextflowVersion("$outputDir/pipeline_info/nf_core_seqinspector_software_mqc_versions.yml"),
33+
// All stable path names, with a relative path
34+
stable_name,
35+
// All files with stable contents
36+
stable_path
37+
).match() }
4738
)
4839
}
4940
}

0 commit comments

Comments
 (0)