From 71584a5e7cfae13888047fead9433fb5bb327ed9 Mon Sep 17 00:00:00 2001 From: Anandashankar Anil Date: Mon, 21 Sep 2026 15:25:49 +0200 Subject: [PATCH] Use the common regex for Illumina and Element run folders in bioinfo tab script --- VERSIONLOG.md | 4 ++++ taca/__init__.py | 2 +- taca/utils/bioinfo_tab.py | 5 +++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/VERSIONLOG.md b/VERSIONLOG.md index 6bd8461c..e3f5d8e7 100644 --- a/VERSIONLOG.md +++ b/VERSIONLOG.md @@ -1,5 +1,9 @@ # TACA Version Log +## 20260921.2 + +Use the common regex for Illumina and Element run folders in bioinfo tab script + ## 20260917.2 Use the common regex for Illumina run folders in Runs diff --git a/taca/__init__.py b/taca/__init__.py index d48c5701..a0dc395b 100644 --- a/taca/__init__.py +++ b/taca/__init__.py @@ -1,3 +1,3 @@ """Main TACA module""" -__version__ = "1.6.26" +__version__ = "1.6.27" diff --git a/taca/utils/bioinfo_tab.py b/taca/utils/bioinfo_tab.py index fb714174..7eb7f7b8 100644 --- a/taca/utils/bioinfo_tab.py +++ b/taca/utils/bioinfo_tab.py @@ -12,6 +12,7 @@ from taca.nanopore.ONT_run_classes import ONT_RUN_PATTERN, ONT_run from taca.utils import statusdb from taca.utils.config import CONFIG +from taca.utils.filesystem import RUN_RE_ELEMENT, RUN_RE_ILLUMINA from taca.utils.misc import send_mail logger = logging.getLogger(__name__) @@ -30,9 +31,9 @@ def collect_runs(): # Pattern explained: # 6-8Digits_(maybe ST-)AnythingLetterornumberNumber_Number_AorBLetterornumberordash - illumina_rundir_re = re.compile(r"\d{6,8}_[ST-]*\w+\d+_\d+_[AB]?[A-Z0-9\-]+") + illumina_rundir_re = re.compile(RUN_RE_ILLUMINA) # E.g. 20250121_AV242106_B2425434199 - element_rundir_re = re.compile(r"\d{8}_AV242106_[AB]\d+") + element_rundir_re = re.compile(RUN_RE_ELEMENT) for inst_brand in CONFIG["bioinfo_tab"]["data_dirs"]: for data_dir in CONFIG["bioinfo_tab"]["data_dirs"][inst_brand]: