Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/lint-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions VERSIONLOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion taca/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Main TACA module"""

__version__ = "1.6.29"
__version__ = "1.6.30"
10 changes: 2 additions & 8 deletions taca/analysis/analysis_element.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Comment thread
ssjunnebo marked this conversation as resolved.
Resolved
else:
if run.run_type != "Cytoprofiling":
demux_results_dirs = glob.glob(
os.path.join(run.run_dir, "Demultiplexing_*")
)
Expand Down Expand Up @@ -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
Comment thread
ssjunnebo marked this conversation as resolved.
Resolved
try:
_process(run)
except Exception as e:
Expand Down
8 changes: 4 additions & 4 deletions taca/backup/backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Comment thread
alneberg marked this conversation as resolved.
Resolved
):
logger.error(f"Given run {self.run} did not match a FC pattern")
raise SystemExit
Expand All @@ -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]
Expand Down Expand Up @@ -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 (
Expand Down Expand Up @@ -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:
Expand Down
12 changes: 1 addition & 11 deletions taca/element/Element_Runs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion taca/utils/filesystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading