diff --git a/.github/workflows/lint-code.yml b/.github/workflows/lint-code.yml index 6202ce04..35824ed4 100644 --- a/.github/workflows/lint-code.yml +++ b/.github/workflows/lint-code.yml @@ -11,7 +11,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: "3.11.5" + python-version: "3.11" - name: Install dependencies run: | python -m pip install --upgrade pip @@ -29,7 +29,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: "3.11.5" + python-version: "3.11" - name: Install dependencies run: | python -m pip install --upgrade pip @@ -46,7 +46,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: "3.11.5" + python-version: "3.11" - name: Install dependencies run: | python -m pip install --upgrade pip @@ -64,7 +64,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: "3.10" + python-version: "3.11" - name: Install dependencies run: | diff --git a/.github/workflows/test-code.yml b/.github/workflows/test-code.yml index 1716dfef..5501884b 100644 --- a/.github/workflows/test-code.yml +++ b/.github/workflows/test-code.yml @@ -12,7 +12,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: "3.11.5" + python-version: "3.11" - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/VERSIONLOG.md b/VERSIONLOG.md index 177c6e00..4aca5340 100644 --- a/VERSIONLOG.md +++ b/VERSIONLOG.md @@ -1,5 +1,9 @@ # TACA Version Log +## 20261022.1 + +Replace Teton with Cytos + ## 20260923.1 Add small delay for runfolder tar to allow filsystem to catch up diff --git a/taca/__init__.py b/taca/__init__.py index 6ac52a64..29ef0aeb 100644 --- a/taca/__init__.py +++ b/taca/__init__.py @@ -1,3 +1,3 @@ """Main TACA module""" -__version__ = "1.6.29" +__version__ = "1.6.30" diff --git a/taca/analysis/analysis_element.py b/taca/analysis/analysis_element.py index 04f85b7c..840d89dd 100755 --- a/taca/analysis/analysis_element.py +++ b/taca/analysis/analysis_element.py @@ -123,9 +123,7 @@ def _process(run_to_process): #### Transfer status #### transfer_status = run.get_transfer_status() if transfer_status == "not started": - if run.run_type == "Cytoprofiling": - run.move_pressure_check_dir() - else: + if run.run_type != "Cytoprofiling": demux_results_dirs = glob.glob( os.path.join(run.run_dir, "Demultiplexing_*") ) @@ -185,13 +183,9 @@ def _process(run_to_process): logger.info("Starting processing of all runs in data directories") data_dirs = CONFIG.get("element_analysis").get("data_dirs") for data_dir in data_dirs: - # Run folder looks like DATE_*_*, the last section is the FC side (A/B) and ID (PID for teton runs) + # Run folder looks like DATE_*_*, the last section is the FC side (A/B) and ID (PID for Cytos runs) runs = glob.glob(os.path.join(data_dir, "[1-9]*_*_*")) for run in runs: - if "FlowcellPressureCheck" in run: - # Skip the pressure check runs (Teton runs) - logger.info(f"Skipping {run}") - continue try: _process(run) except Exception as e: diff --git a/taca/backup/backup.py b/taca/backup/backup.py index 6e19b5bf..93357a39 100644 --- a/taca/backup/backup.py +++ b/taca/backup/backup.py @@ -73,7 +73,7 @@ def collect_runs(self, ext=None, filter_by_ext=False): re.match(filesystem.RUN_RE_ILLUMINA, run.name) or re.match(filesystem.RUN_RE_ONT, run.name) or re.match(filesystem.RUN_RE_ELEMENT, run.name) - or re.match(filesystem.RUN_RE_TETON, run.name) + or re.match(filesystem.RUN_RE_CYTOS, run.name) ): logger.error(f"Given run {self.run} did not match a FC pattern") raise SystemExit @@ -97,7 +97,7 @@ def collect_runs(self, ext=None, filter_by_ext=False): re.match(filesystem.RUN_RE_ILLUMINA, item) or re.match(filesystem.RUN_RE_ONT, item) or re.match(filesystem.RUN_RE_ELEMENT, item) - or re.match(filesystem.RUN_RE_TETON, item) + or re.match(filesystem.RUN_RE_CYTOS, item) ) and item not in self.runs: run_type = self._get_run_type(item) archive_path = self.archive_dirs[run_type] @@ -130,7 +130,7 @@ def avail_disk_space(self, path, run): re.match(filesystem.RUN_RE_ILLUMINA, run_dir) or re.match(filesystem.RUN_RE_ONT, run_dir) or re.match(filesystem.RUN_RE_ELEMENT, run_dir) - or re.match(filesystem.RUN_RE_TETON, run_dir) + or re.match(filesystem.RUN_RE_CYTOS, run_dir) ): continue if not ( @@ -205,7 +205,7 @@ def _get_run_type(self, run): ): run_type = "promethion" elif re.match(filesystem.RUN_RE_ELEMENT, run) or re.match( - filesystem.RUN_RE_TETON, run + filesystem.RUN_RE_CYTOS, run ): run_type = "aviti" else: diff --git a/taca/element/Element_Runs.py b/taca/element/Element_Runs.py index f7aacfb9..cf31c300 100644 --- a/taca/element/Element_Runs.py +++ b/taca/element/Element_Runs.py @@ -288,7 +288,7 @@ def parse_run_parameters(self) -> None: if self.run_type == "Cytoprofiling": self.flowcell_id = self.run_name[ 1: - ] # Teton runs don't have FlowcellID in the RunParameters.json, the PID is used instead + ] # Cytos runs don't have FlowcellID in the RunParameters.json, the PID is used instead else: self.flowcell_id = run_parameters.get("FlowcellID") self.cycles = run_parameters.get("Cycles", {"R1": 0, "R2": 0, "I1": 0, "I2": 0}) @@ -847,16 +847,6 @@ def rsync_successful(self): else: return False - def move_pressure_check_dir(self): - pressure_check_dir = self.run_dir + "_FlowcellPressureCheck" - if os.path.exists(pressure_check_dir): - shutil.move(pressure_check_dir, self.run_dir) - logger.info(f"Moved pressure check dir to {self.run_dir}") - else: - logger.info( - f"No pressure check dir found for {self}. Processing run anyway." - ) - # Clear all content under a dir def clear_dir(self, dir): for filename in os.listdir(dir): diff --git a/taca/utils/filesystem.py b/taca/utils/filesystem.py index f8cf2703..c32977c8 100644 --- a/taca/utils/filesystem.py +++ b/taca/utils/filesystem.py @@ -7,7 +7,7 @@ RUN_RE_ILLUMINA = r"^(\d{6,8})_([a-zA-Z\d\-]+)_\d+_([AB]?)([A-Z\d\-]+)$" RUN_RE_ONT = r"^(\d{8})_(\d{4})_([0-9a-zA-Z]+)_([0-9a-zA-Z]+)_([0-9a-zA-Z]+)$" RUN_RE_ELEMENT = r"^\d{8}_AV\d{6}_[AB]\d{10}$" -RUN_RE_TETON = r"^\d{8}_AV\d{6}_[AB]P\d+P[12]$" # 20260302_AV242103_AP12345P1 +RUN_RE_CYTOS = r"^\d{8}_AV\d{6}_[AB]P\d+P[12]$" # 20260302_AV242103_AP12345P1 @contextlib.contextmanager