Skip to content

Commit

Permalink
check additionaly if list is set
Browse files Browse the repository at this point in the history
  • Loading branch information
MarieLataretu authored Dec 13, 2024
1 parent b3b8620 commit 0681ef5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion poreCov.nf
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ if ( params.single && params.samples ) { exit 1, "Sample input [--samples] not s

// check that input params are used as such
if (params.fasta == true) { exit 5, "Please provide a fasta file via [--fasta]" }
if (params.fastq == true) { exit 5, "Please provide a fastq files (one per sample) via [--fastq]" }
if (params.fastq == true && !params.list) { exit 5, "Please provide a fastq files (one per sample) via [--fastq]" }
if (params.fastq_pass == true) { exit 5, "Please provide a fastq_pass dir via [--fastq_pass]" }
if (params.fast5 == true) { exit 5, "Please provide a fast5 dir via [--fast5]" }
if (params.minLength && !params.minLength.toString().matches("[0-9]+")) { exit 5, "Please provide an integer number (e.g. 300) as minimal read length via [--minLength]" }
Expand Down

0 comments on commit 0681ef5

Please sign in to comment.