@@ -72,6 +72,7 @@ def collect_runs(self, ext=None, filter_by_ext=False):
7272 re .match (filesystem .RUN_RE_ILLUMINA , run .name )
7373 or re .match (filesystem .RUN_RE_ONT , run .name )
7474 or re .match (filesystem .RUN_RE_ELEMENT , run .name )
75+ or re .match (filesystem .RUN_RE_TETON , run .name )
7576 ):
7677 logger .error (f"Given run { self .run } did not match a FC pattern" )
7778 raise SystemExit
@@ -95,6 +96,7 @@ def collect_runs(self, ext=None, filter_by_ext=False):
9596 re .match (filesystem .RUN_RE_ILLUMINA , item )
9697 or re .match (filesystem .RUN_RE_ONT , item )
9798 or re .match (filesystem .RUN_RE_ELEMENT , item )
99+ or re .match (filesystem .RUN_RE_TETON , item )
98100 ) and item not in self .runs :
99101 run_type = self ._get_run_type (item )
100102 archive_path = self .archive_dirs [run_type ]
@@ -124,6 +126,7 @@ def avail_disk_space(self, path, run):
124126 re .match (filesystem .RUN_RE_ILLUMINA , run_dir )
125127 or re .match (filesystem .RUN_RE_ONT , run_dir )
126128 or re .match (filesystem .RUN_RE_ELEMENT , run_dir )
129+ or re .match (filesystem .RUN_RE_TETON , run_dir )
127130 ):
128131 continue
129132 if not (
@@ -196,7 +199,9 @@ def _get_run_type(self, run):
196199 "^(\d{8})_(\d{4})_([1-3][A-H])_([0-9a-zA-Z]+)_([0-9a-zA-Z]+)$" , run
197200 ):
198201 run_type = "promethion"
199- elif re .match (filesystem .RUN_RE_ELEMENT , run ):
202+ elif re .match (filesystem .RUN_RE_ELEMENT , run ) or re .match (
203+ filesystem .RUN_RE_TETON , run
204+ ):
200205 run_type = "aviti"
201206 else :
202207 run_type = ""
@@ -276,7 +281,9 @@ def _clean_tmp_files(self, files):
276281
277282 def _log_pdc_statusdb (self , run ):
278283 """Log the time stamp in statusDB if a file is succussfully sent to PDC."""
279- if re .match (filesystem .RUN_RE_ELEMENT , run ):
284+ if re .match (filesystem .RUN_RE_ELEMENT , run ) or re .match (
285+ filesystem .RUN_RE_TETON , run
286+ ):
280287 try :
281288 element_db_connection = statusdb .ElementRunsConnection (
282289 self .couch_info , dbname = "element_runs"
0 commit comments