-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
Validation of FASTQS early prevents running the pipeline on invalid FASTQ files which will make the pipeline more efficient at achieving it's ultimate objective of checking FASTQ validity. It adds 3 more parameters: - `--skip_linting` which enables the linting of FASTQs - `--fq_lint_args` which is a string of arguments to pass to the linting tool - `--continue_with_lint_fail` which is a boolean to determine whether to continue if the linting fails Between these three options the user has a high degree of control over how the pipeline lints which should handle most use cases. Closes #31
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
nextflow_pipeline { | ||
|
||
name "Test Workflow main.nf on NovaSeq6000 data" | ||
script "../main.nf" | ||
tag "seqinspector" | ||
tag "PIPELINE" | ||
|
||
test("rnaseq data test fail linting") { | ||
|
||
when { | ||
config "./rnaseq.main.nf.test.config" | ||
params { | ||
outdir = "$outputDir" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
// Linting should fail! | ||
{ assert workflow.failed }, | ||
) | ||
} | ||
} | ||
|
||
test("rnaseq data test skip linting") { | ||
|
||
when { | ||
config "./rnaseq.main.nf.test.config" | ||
params { | ||
outdir = "$outputDir" | ||
skip_linting = true | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
// Linting should fail! | ||
{ assert workflow.failed }, | ||
) | ||
} | ||
} | ||
|
||
test("rnaseq data test ignore linting") { | ||
|
||
when { | ||
config "./rnaseq.main.nf.test.config" | ||
params { | ||
outdir = "$outputDir" | ||
continue_with_lint_fail = true | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert workflow.success }, | ||
{ assert snapshot( | ||
path("$outputDir/multiqc/global_report/multiqc_data/multiqc_citations.txt"), | ||
path("$outputDir/multiqc/global_report/multiqc_data/multiqc_fastqc.txt"), | ||
path("$outputDir/multiqc/global_report/multiqc_data/multiqc_general_stats.txt") | ||
) | ||
}, | ||
) | ||
} | ||
} | ||
|
||
test("rnaseq data test add args to fq/lint") { | ||
|
||
when { | ||
config "./rnaseq.main.nf.test.config" | ||
params { | ||
outdir = "$outputDir" | ||
fq_lint_args = "--disable-validator P001" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert workflow.success }, | ||
{ assert snapshot( | ||
path("$outputDir/multiqc/global_report/multiqc_data/multiqc_citations.txt"), | ||
path("$outputDir/multiqc/global_report/multiqc_data/multiqc_fastqc.txt"), | ||
path("$outputDir/multiqc/global_report/multiqc_data/multiqc_general_stats.txt") | ||
) | ||
}, | ||
) | ||
} | ||
} | ||
} |