Skip to content

Commit

Permalink
update config case function
Browse files Browse the repository at this point in the history
  • Loading branch information
rannick committed Dec 7, 2023
1 parent fff1463 commit 55a35c7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cg/meta/workflow/raredisease.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from cg.meta.workflow.nf_analysis import NfAnalysisAPI
from cg.models.cg_config import CGConfig
from cg.models.raredisease.raredisease import RarediseaseSampleSheetEntry, RarediseaseParameters
from cg.store.models import Case, Sample
from cg.store.models import Case, Sample, CaseSample

LOG = logging.getLogger(__name__)

Expand Down Expand Up @@ -54,7 +54,7 @@ def config_case(
self.write_params_file(case_id=case_id, pipeline_parameters=pipeline_parameters.dict())

def get_sample_sheet_content_per_sample(
self, sample: Sample, case: Case = ""
self, sample: Sample, case: Case = "", case_sample: CaseSample = ""
) -> list[list[str]]:
"""Get sample sheet content per sample."""
sample_metadata: list[str] = self.gather_file_metadata_for_sample(sample)
Expand All @@ -71,9 +71,9 @@ def get_sample_sheet_content_per_sample(
fastq_forward_read_paths=fastq_forward_read_paths,
fastq_reverse_read_paths=fastq_reverse_read_paths,
sex=sample.sex,
phenotype=sample.status,
paternal_id=sample.father,
maternal_id=sample.mother,
phenotype=case_sample.status,
paternal_id=case_sample.father,
maternal_id=case_sample.mother,
case_id=case,
)
return sample_sheet_entry.reformat_sample_content()
Expand Down

0 comments on commit 55a35c7

Please sign in to comment.