diff --git a/bio/trim_galore/pe/wrapper.py b/bio/trim_galore/pe/wrapper.py index 801abb1c89..827230da01 100644 --- a/bio/trim_galore/pe/wrapper.py +++ b/bio/trim_galore/pe/wrapper.py @@ -31,7 +31,7 @@ def fasta_filename(infile: str, infix: str, out_gzip: bool) -> str: """ base_input = os.path.basename(infile) suffix = ".gz" if out_gzip or infile.endswith(".gz") else "" - REGEX_RULES = [r"\.fastq$", "\.fastq\.gz$", r"\.fq$", r"\.fq\.gz$"] + REGEX_RULES = [r"\.fastq$", r"\.fastq\.gz$", r"\.fq$", r"\.fq\.gz$"] for regex in REGEX_RULES: if re.search(regex, base_input): return re.sub(regex, f"{infix}.fq", base_input) + suffix