From 189a253d46404193138ecbb2e250126e34b627c6 Mon Sep 17 00:00:00 2001 From: chris-s-friedman Date: Wed, 28 Aug 2024 15:53:26 -0400 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20D3B-674=20add=20new=20CAVATICA=20gf?= =?UTF-8?q?=20fields?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kf_lib_data_ingest/common/concept_schema.py | 3 +++ .../target_api_plugins/kids_first_dataservice.py | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/kf_lib_data_ingest/common/concept_schema.py b/kf_lib_data_ingest/common/concept_schema.py index 463eaf8b..46ba8769 100644 --- a/kf_lib_data_ingest/common/concept_schema.py +++ b/kf_lib_data_ingest/common/concept_schema.py @@ -211,8 +211,11 @@ class GENOMIC_FILE(PropertyMixin, FileMixin): WORKFLOW_TOOL = None WORKFLOW_TYPE = None WORKFLOW_VERSION = None + WORKFLOW_ENDPOINT = None FILE_VERSION_DESCRIPTOR = None DATA_CATEGORY = None + CAVATICA_FILE_ID = None + CAVATICA_VOLUME = None class READ_GROUP(PropertyMixin): PAIRED_END = None 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 49361212..3f676363 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 @@ -757,6 +757,13 @@ def hashes(record): "reference_genome": record.get( CONCEPT.GENOMIC_FILE.REFERENCE_GENOME ), + "cavatica_file_id": record.get( + CONCEPT.GENOMIC_FILE.CAVATICA_FILE_ID + ), + "cavatica_volume": record.get(CONCEPT.GENOMIC_FILE.CAVATICA_VOLUME), + "workflow_endpoint": record.get( + CONCEPT.GENOMIC_FILE.WORKFLOW_ENDPOINT + ), "workflow_type": record.get(CONCEPT.GENOMIC_FILE.WORKFLOW_TYPE), "workflow_tool": record.get(CONCEPT.GENOMIC_FILE.WORKFLOW_TOOL), "workflow_version": record.get(