Skip to content

Commit

Permalink
Merge pull request NationalGenomicsInfrastructure#426 from kedhammar/…
Browse files Browse the repository at this point in the history
…master

Reduce redundant specificity for anglerfish samplesheet pattern
  • Loading branch information
kedhammar authored Jun 10, 2024
2 parents 40268ad + 1114900 commit 887b658
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
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

## 20240527.1

Use run-specific name to find Anglerfish samplesheet.

## 20240523.1

Update server status to run on ngi-preproc
Expand Down
8 changes: 3 additions & 5 deletions taca/nanopore/ONT_run_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand All @@ -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:
Expand Down

0 comments on commit 887b658

Please sign in to comment.