From ff5b0c99810cd7827edd6350cd692d689154efe5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Mah=C3=A9?= Date: Fri, 28 Feb 2025 15:59:28 +0100 Subject: [PATCH] add checks for --fastq_minqual --- src/filter.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/filter.cc b/src/filter.cc index 8c629496..ee315a02 100644 --- a/src/filter.cc +++ b/src/filter.cc @@ -649,6 +649,10 @@ namespace { if (is_negative) { fatal("--fastq_truncee_rate cannot be negative"); } + + if (parameters.opt_fastq_minqual < 0) { + fatal("--fastq_minqual cannot be negative"); + } } } // end of anonymous namespace