From 2f66f18767a3b3daaca10051c6999a4b587f7e2e Mon Sep 17 00:00:00 2001 From: Michael Harper Date: Thu, 18 Jan 2024 16:03:09 +1100 Subject: [PATCH] fixing referencing of sequencing group attributes when upserting assay --- scripts/add_nagim_gvcfs_to_tob_wgs_test_metamist.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/scripts/add_nagim_gvcfs_to_tob_wgs_test_metamist.py b/scripts/add_nagim_gvcfs_to_tob_wgs_test_metamist.py index 1dfc64479..9e789f8d8 100644 --- a/scripts/add_nagim_gvcfs_to_tob_wgs_test_metamist.py +++ b/scripts/add_nagim_gvcfs_to_tob_wgs_test_metamist.py @@ -155,13 +155,9 @@ def main(project: str, project_id: int, sample_path_mappings: str, suffix: str): AssayUpsert( type=sg['type'], meta={ - 'sequencing_type': sg['assays'][0]['meta'][ - 'sequencing_type' - ], - 'sequencing_platform': sg['assays'][0]['meta'][ - 'sequencing_platform' - ], - 'sequencing_technology': sg['assays'][0]['meta'][ + 'sequencing_type': sg['sequencing_type'], + 'sequencing_platform': sg['sequencing_platform'], + 'sequencing_technology': sg[ 'sequencing_technology' ], },