From eef3db8639806bca8bcec3e35e75d5488cbca2fd Mon Sep 17 00:00:00 2001 From: Oliver Schwengers Date: Tue, 16 Jul 2024 15:27:12 +0200 Subject: [PATCH] fix CRISPR parser #299 The assumed minimal length of CRISPR spacers was reduced from at least 10 down to at least 1 in the regex. --- bakta/features/crispr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bakta/features/crispr.py b/bakta/features/crispr.py index 17440b29..3b7b31c1 100644 --- a/bakta/features/crispr.py +++ b/bakta/features/crispr.py @@ -11,7 +11,7 @@ import bakta.utils as bu -RE_CRISPR = re.compile(r'(\d{1,8})\s+(\d{2})\s+(\d{1,3}\.\d)\s+(?:(\d{2})\s+)?([ATGCN]+)?\s+([ATGCN\.-]+)\s*(?:([ATGCN]+))?') +RE_CRISPR = re.compile(r'(\d{1,8})\s+(\d{2})\s+(\d{1,3}\.\d)\s+(?:(\d{1})\s+)?([ATGCN]+)?\s+([ATGCN\.-]+)\s*(?:([ATGCN]+))?') log = logging.getLogger('CRISPR')