From 071ed4c0310f0d0984dbd81b41dbf5537737faa1 Mon Sep 17 00:00:00 2001 From: vivbak Date: Tue, 26 Sep 2023 12:20:51 +1000 Subject: [PATCH] respond to feedback --- scripts/create_test_subset.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/create_test_subset.py b/scripts/create_test_subset.py index 785c2743a..1f50fc8f8 100755 --- a/scripts/create_test_subset.py +++ b/scripts/create_test_subset.py @@ -205,7 +205,7 @@ def main( # Pull Participant Data participant_data = [] internal_participant_ids: list = [] - for sg in original_project_subset_data.get('project').get('samples'): + for sg in original_project_subset_data.get('project').get('samples', []): participant = sg.get('participant') if participant: participant_data.append(participant) @@ -466,7 +466,7 @@ def get_existing_analysis( def get_sids_for_families( project: str, families_n: int, additional_families: set[str] ) -> set[str]: - """Returns specific sequencing groups to be included in the test project.""" + """Returns specific samples to be included in the test project.""" family_sgid_output = query(QUERY_FAMILY_SGID, {'project': project})