From 62d0c666618be5f3e233e122f61b198fddfc25ce Mon Sep 17 00:00:00 2001 From: MattWellie Date: Tue, 22 Aug 2023 14:54:49 +1000 Subject: [PATCH] adjustment to missing participants in pedigree generation --- helpers/prepare_aip_cohort.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/helpers/prepare_aip_cohort.py b/helpers/prepare_aip_cohort.py index 989417fc..9b89b848 100644 --- a/helpers/prepare_aip_cohort.py +++ b/helpers/prepare_aip_cohort.py @@ -219,7 +219,9 @@ def process_pedigree( ped_lines = [] for entry in ped_with_permutations: for sample, mother, father in product( - entry['individual_id'], entry['paternal_id'], entry['maternal_id'] + entry['individual_id'], + entry['paternal_id'] or ['0'], + entry['maternal_id'] or ['0'], ): ped_lines.append( '\t'.join(