forked from NationalGenomicsInfrastructure/dataflow_transfer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathelement_runs.py
More file actions
27 lines (19 loc) · 763 Bytes
/
element_runs.py
File metadata and controls
27 lines (19 loc) · 763 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
from dataflow_transfer.run_classes.generic_runs import Run
from .registry import register_run_class
class ElementRun(Run):
"""Defines an Element sequencing run"""
def __init__(self, run_dir, configuration):
super().__init__(run_dir, configuration)
self.final_file = "RunUploaded.json"
self.flowcell_id = self.run_id.split("_")[
-1
] # This is true for all except Teton runs
@register_run_class
class AVITIRun(ElementRun):
"""Defines an AVITI sequencing run"""
run_type = "AVITI"
def __init__(self, run_dir, configuration):
self.run_id_format = (
r"^\d{8}_AV\d{6}_(A|BP)\d{10}$" # 20251007_AV242106_A2507535225
)
super().__init__(run_dir, configuration)