diff --git a/prymer/offtarget/offtarget_detector.py b/prymer/offtarget/offtarget_detector.py index 89aaf37..ccd7bfb 100644 --- a/prymer/offtarget/offtarget_detector.py +++ b/prymer/offtarget/offtarget_detector.py @@ -231,9 +231,7 @@ def __init__( """ errors: list[str] = [] if max_amplicon_size < 1: - errors.append( - f"'max_amplicon_size' must be greater than or equal to 1. Saw {max_amplicon_size}" - ) + errors.append(f"'max_amplicon_size' must be greater than 0. Saw {max_amplicon_size}") if max_primer_hits < 0: errors.append( f"'max_primer_hits' must be greater than or equal to 0. Saw {max_primer_hits}" @@ -250,7 +248,7 @@ def __init__( ) if three_prime_region_length < 1: errors.append( - "'three_prime_region_length' must be greater than or equal to 1. " + "'three_prime_region_length' must be greater than 0. " f"Saw {three_prime_region_length}" ) if ( @@ -259,7 +257,7 @@ def __init__( ): errors.append( "'max_mismatches_in_three_prime_region' must be between 0 and " - f"{three_prime_region_length}, inclusive. " + f"{three_prime_region_length} inclusive. " f"Saw {max_mismatches_in_three_prime_region}" ) if max_mismatches < 0: