From 0a8e30d8fb1e2f7c0ea9e83e263a65f8d415ff4b Mon Sep 17 00:00:00 2001 From: tokebe <43009413+tokebe@users.noreply.github.com> Date: Wed, 13 Dec 2023 15:53:51 -0500 Subject: [PATCH] feat: use instance-equivalent NGD --- src/results_assembly/score.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/results_assembly/score.ts b/src/results_assembly/score.ts index 1e552ac9..5b55c4c6 100644 --- a/src/results_assembly/score.ts +++ b/src/results_assembly/score.ts @@ -26,7 +26,12 @@ export interface ScoreCombos { // create lookup table for ngd scores in the format: {inputUMLS-outputUMLS: ngd} async function query(queryPairs: string[][]): Promise { - const url = 'https://biothings.ncats.io/semmeddb/query/ngd'; + const url = { + dev: 'https://biothings.ci.transltr.io/semmeddb/query/ngd', + ci: 'https://biothings.ci.transltr.io/semmeddb/query/ngd', + test: 'https://biothings.test.transltr.io/semmeddb/query/ngd', + prod: 'https://biothings.ncats.io/semmeddb/query/ngd', + }[process.env.INSTANCE_ENV ?? 'prod']; const batchSize = 250; const concurrency_limit = os.cpus().length * 2;