Skip to content

Commit

Permalink
minor fixes in docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
diitaz93 committed Sep 6, 2024
1 parent e5ad059 commit d582db1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cg/meta/workflow/raredisease.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def get_workflow_metrics(self, sample_id: str) -> dict:
return metric_conditions

def _get_sample_pair_patterns(self, case_id: str) -> list[str]:
"""Return search patterns for MultiQC."""
"""Return sample-pair patterns for searching in MultiQC."""
sample_ids: list[str] = list(self.status_db.get_sample_ids_by_case_id(case_id=case_id))
pairwise_patterns: list[str] = [
f"{sample1}-{sample2}" for sample1, sample2 in permutations(sample_ids, 2)
Expand All @@ -168,7 +168,7 @@ def _get_sample_pair_patterns(self, case_id: str) -> list[str]:
def get_parent_error_ped_check_metric(
self, pair_sample_ids: str, multiqc_raw_data: dict[dict]
) -> MetricsBase | None:
"""Return the value for Peddy parent error given a concatenated pair of sample ids."""
"""Return the parsed metrics for pedigree error given a concatenated pair of sample ids."""
metric_name: str = "parent_error_ped_check"
peddy_metrics: dict[str, dict] = multiqc_raw_data["multiqc_peddy"]
if sample_pair_metrics := peddy_metrics.get(pair_sample_ids, None):
Expand All @@ -182,7 +182,7 @@ def get_multiqc_json_metrics(self, case_id: str) -> list[MetricsBase]:
"""Return a list of the metrics specified in a MultiQC json file."""
multiqc_json: MultiqcDataJson = self.get_multiqc_data_json(case_id=case_id)
metrics = []
for search_pattern, metric_id in self.get_multiqc_search_patterns(case_id=case_id).items():
for search_pattern, metric_id in self.get_multiqc_search_patterns(case_id).items():
metrics_for_pattern: list[MetricsBase] = (
self.get_metrics_from_multiqc_json_with_pattern(
search_pattern=search_pattern,
Expand Down

0 comments on commit d582db1

Please sign in to comment.