@@ -86,6 +86,10 @@ def _find_extension(self, file_path: Path):
8686 """
8787 Identifies the file extension and stores that information in the class.
8888 """
89+ if "atlas" in file_path .parts :
90+ self ._extension = file_path .suffix
91+ return True
92+
8993 if (
9094 required_substrings := self ._murfey_config .get (
9195 "data_required_substrings" , {}
@@ -121,6 +125,10 @@ def _find_context(self, file_path: Path) -> bool:
121125 stages of processing. Actions to take for individual files will be determined
122126 in the Context classes themselves.
123127 """
128+ if "atlas" in file_path .parts :
129+ self ._role = "detector"
130+ self ._context = SPAMetadataContext ("epu" , self ._basepath )
131+ return True
124132
125133 # CLEM workflow checks
126134 # Look for LIF and XLIF files
@@ -310,7 +318,10 @@ def _analyse(self):
310318 )
311319 except Exception as e :
312320 logger .error (f"Exception encountered: { e } " )
313- if self ._role == "detector" :
321+ if (
322+ self ._role == "detector"
323+ and "atlas" not in transferred_file .parts
324+ ):
314325 if not dc_metadata :
315326 try :
316327 dc_metadata = self ._context .gather_metadata (
@@ -376,7 +387,10 @@ def _analyse(self):
376387 )
377388 except Exception as e :
378389 logger .error (f"Exception encountered: { e } " )
379- if self ._role == "detector" :
390+ if (
391+ self ._role == "detector"
392+ and "atlas" not in transferred_file .parts
393+ ):
380394 if not dc_metadata :
381395 try :
382396 dc_metadata = self ._context .gather_metadata (
0 commit comments