From 6a2659668ad594468b5aacd2940bf5f67b4520c3 Mon Sep 17 00:00:00 2001 From: chris-s-friedman Date: Tue, 21 May 2024 16:55:53 -0400 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Actually=20ingest=20sample?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../target_api_plugins/kids_first_dataservice.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kf_lib_data_ingest/target_api_plugins/kids_first_dataservice.py b/kf_lib_data_ingest/target_api_plugins/kids_first_dataservice.py index df84c4f9..63e1aefd 100644 --- a/kf_lib_data_ingest/target_api_plugins/kids_first_dataservice.py +++ b/kf_lib_data_ingest/target_api_plugins/kids_first_dataservice.py @@ -395,7 +395,7 @@ def submit(cls, host, body): return submit(host, cls, body) -class BiospecimenGroup: +class Sample: class_name = "sample" api_path = "samples" target_id_concept = CONCEPT.BIOSPECIMEN_GROUP.TARGET_SERVICE_ID @@ -537,7 +537,7 @@ def build_entity(cls, record, get_target_id_from_record): CONCEPT.BIOSPECIMEN.DBGAP_STYLE_CONSENT_CODE ), "consent_type": record.get(CONCEPT.BIOSPECIMEN.CONSENT_SHORT_NAME), - "sample_id": get_target_id_from_record(BiospecimenGroup, record), + "sample_id": get_target_id_from_record(Sample, record), } return { **cls.get_key_components(record, get_target_id_from_record), @@ -991,6 +991,7 @@ def _GET(host, api_path, body): Diagnosis, Phenotype, Outcome, + Sample, Biospecimen, GenomicFile, ReadGroup,