From dbc9189b809a8ed8bae24e836d6604b44cf0f96e Mon Sep 17 00:00:00 2001 From: Michael Thornton Date: Mon, 6 Nov 2023 16:08:59 -0800 Subject: [PATCH] update to include correct prefix --- .../site/changesheets/scripts/neon_soils_add_ncbi_ids.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nmdc_runtime/site/changesheets/scripts/neon_soils_add_ncbi_ids.py b/nmdc_runtime/site/changesheets/scripts/neon_soils_add_ncbi_ids.py index 774c66ca..3ce64962 100644 --- a/nmdc_runtime/site/changesheets/scripts/neon_soils_add_ncbi_ids.py +++ b/nmdc_runtime/site/changesheets/scripts/neon_soils_add_ncbi_ids.py @@ -43,7 +43,7 @@ def _get_change_for_biosample(biosample, ncbi_biosample_accession): return ChangesheetLineItem( id=biosample["id"], action="insert", attribute="insdc_biosample_identifiers", - value=ncbi_biosample_accession, ) + value="biosample:" + ncbi_biosample_accession, ) def _get_change_for_omics_processing(omics_processing_record, ncbi_bioproject_accession): @@ -62,7 +62,7 @@ def _get_change_for_omics_processing(omics_processing_record, return ChangesheetLineItem( id=omics_processing_id, action="insert", attribute="insdc_experiment_identifiers", - value=ncbi_bioproject_accession, ) + value="bioproject:" + ncbi_bioproject_accession, ) @click.command() @@ -114,7 +114,7 @@ def generate_changesheet(study_id, use_dev_api): ChangesheetLineItem( id=study_id, action="insert", attribute="insdc_bioproject_identifiers", - value=UMBRELLA_BIOPROJECT_ACCESSION, ) + value="bioproject:" + UMBRELLA_BIOPROJECT_ACCESSION, ) ) gold_study_identifiers = nmdc_study["gold_study_identifiers"]