Skip to content

Commit 0ba1652

Browse files
committed
add assertions
1 parent 4bcca15 commit 0ba1652

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

workflows/seqinspector.nf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ workflow SEQINSPECTOR {
8686
// and transpose it into a tuple containing lists for each property
8787

8888
if (!("fastqscreen" in skip_tools)) {
89+
90+
assert params.fastq_screen_references; "params.fastq_screen_references is not defined, either supply it or skip running FastQ Screen"
91+
assert file(params.fastq_screen_references).exists(); "params.fastq_screen_references does not exist, either supply it or skip running FastQ Screen"
92+
8993
ch_fastqscreen_refs = Channel
9094
.fromList(samplesheetToList(
9195
params.fastq_screen_references,

0 commit comments

Comments
 (0)