diff --git a/VERSIONLOG.md b/VERSIONLOG.md index 6ad3cbb3..4322f46c 100644 --- a/VERSIONLOG.md +++ b/VERSIONLOG.md @@ -1,5 +1,9 @@ # TACA Version Log +## 20240527.1 + +Use run-specific name to find Anglerfish samplesheet. + ## 20240523.1 Update server status to run on ngi-preproc diff --git a/taca/nanopore/ONT_run_classes.py b/taca/nanopore/ONT_run_classes.py index 7f03b8f9..1088c7e9 100644 --- a/taca/nanopore/ONT_run_classes.py +++ b/taca/nanopore/ONT_run_classes.py @@ -461,10 +461,8 @@ def fetch_anglerfish_samplesheet(self) -> bool: b) If the file is not yet available, return False. """ - # Following line assumes run was started same year as samplesheet was generated - expected_file_pattern = f"Anglerfish_samplesheet_{self.experiment_name}_*.csv" - - # Finalize query pattern + # Define query pattern + expected_file_pattern = f"*{self.run_name}*.csv" pattern_abspath = os.path.join( self.anglerfish_samplesheets_dir, "*", expected_file_pattern ) @@ -488,7 +486,7 @@ def fetch_anglerfish_samplesheet(self) -> bool: return True else: raise RsyncError( - f"{self.run_name}: Error occured when copying anglerfish samplesheet to run dir." + f"{self.run_name}: Error occurred when copying anglerfish samplesheet to run dir." ) def has_fastq_output(self) -> bool: