Skip to content

Commit

Permalink
Merge pull request #52 from glrs/refactor/10x
Browse files Browse the repository at this point in the history
Add destination filename for report transfer
  • Loading branch information
glrs authored Feb 13, 2025
2 parents 0bc6d6f + d5079a1 commit d5d6dae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/realms/tenx/run_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,7 @@ def post_process(self) -> None:
report_path=self.file_handler.report_path,
project_id=self.project_info.get("project_id", ""),
sample_id=self.id,
destination_filename=self.file_handler.dest_report_name,
):
logging.info(f"[{self.id}] Report transferred successfully.")
else:
Expand Down
3 changes: 3 additions & 0 deletions lib/realms/tenx/utils/sample_file_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ def __init__(self, sample: Any) -> None:

self.fastq_files: Dict[str, Any] = {}

# Define the name the report should have when transferred to ngi-interal
self.dest_report_name: str = f"{self.sample_id}_10x_report.html"

# Define critical file paths
self.init_file_paths()

Expand Down

0 comments on commit d5d6dae

Please sign in to comment.