Skip to content

Commit

Permalink
Update cg/services/post_processing/pacbio/housekeeper_service/pacbio_…
Browse files Browse the repository at this point in the history
…houskeeper_service.py

Co-authored-by: Sebastian Diaz <[email protected]>
  • Loading branch information
ChrOertlin and diitaz93 authored Jul 26, 2024
1 parent 47331d8 commit 1b11792
Showing 1 changed file with 6 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,13 @@ def _add_tag_to_tags(tags: list[str], tag: str) -> list[str]:
def _create_bundle_info(self, file_path: Path, parsed_metrics: PacBioMetrics) -> PacBioFileData:
tags: list[str] = self._get_tags_for_file(file_path)
if self._is_file_type_smrt_cell(file_path):
tags: list[str] = self._add_tag_to_tags(
tags=tags, tag=parsed_metrics.dataset_metrics.cell_id
)
return PacBioFileData(
bundle_name=parsed_metrics.dataset_metrics.cell_id, file_path=file_path, tags=tags
)
tags: list[str] = self._add_tag_to_tags(
tags=tags, tag=parsed_metrics.dataset_metrics.sample_internal_id
)
tags.append(parsed_metrics.dataset_metrics.cell_id)
bundle_name: str = parsed_metrics.dataset_metrics.cell_id
else:
tags.append(parsed_metrics.dataset_metrics.sample_internal_id)
bundle_name: str = parsed_metrics.dataset_metrics.sample_internal_id
return PacBioFileData(
bundle_name=parsed_metrics.dataset_metrics.sample_internal_id,
bundle_name=bundle_name,
file_path=file_path,
tags=tags,
)
Expand Down

0 comments on commit 1b11792

Please sign in to comment.