From a81bc94e3670a95eb956dd30f78d583760ac0868 Mon Sep 17 00:00:00 2001 From: sshugsc Date: Mon, 17 Jun 2024 15:09:23 -0700 Subject: [PATCH 1/2] add displayName format to diseaseOntology --- src/diseaseOntology/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/diseaseOntology/index.js b/src/diseaseOntology/index.js index 772bdddf..dab13d8e 100644 --- a/src/diseaseOntology/index.js +++ b/src/diseaseOntology/index.js @@ -252,6 +252,7 @@ const uploadFile = async ({ alias: false, deprecated, description, + displayName: `${name} [${sourceId.toUpperCase()}]`, name, source, sourceId, @@ -286,6 +287,7 @@ const uploadFile = async ({ for (const alias of aliases) { const content = { alias: true, + displayName: `${alias} [${record.sourceId.toUpperCase()}]`, name: alias, source, sourceId: record.sourceId, @@ -331,6 +333,7 @@ const uploadFile = async ({ for (const alternateId of hasDeprecated) { const content = { deprecated: true, + displayName: `${record.name} [${alternateId.toUpperCase()}]`, name: record.name, source, sourceId: alternateId, From 291b8baacb906581588c3395b88adca78f37450a Mon Sep 17 00:00:00 2001 From: sshugsc Date: Mon, 17 Jun 2024 15:09:58 -0700 Subject: [PATCH 2/2] add displayName format to oncotree --- src/oncotree/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/oncotree/index.js b/src/oncotree/index.js index c03c0072..811b37b3 100644 --- a/src/oncotree/index.js +++ b/src/oncotree/index.js @@ -211,6 +211,7 @@ const upload = async (opt) => { // upload the results for (const record of records) { const body = { + displayName: `${record.name} [${record.sourceId.toUpperCase()}]`, name: record.name, source: rid(source), sourceId: record.sourceId,