From bf1e423a0d4e1054df158e92f3706de821a73cce Mon Sep 17 00:00:00 2001 From: Cornelius Roemer Date: Sun, 20 Oct 2024 14:11:09 +0200 Subject: [PATCH 1/2] fix: use new Usher URL I figured out the new parameters by looking at what the Usher website itself POSTs: ``` hgsid: 423269897_2Rzs1ZBNI21IDAqmdC0WA8nw67gc hgpp_org: wuhCor1 sarsCoV2File: (binary) namesOrIds: S:K478T, India phyloPlaceTree: /gbdb/wuhCor1/hgPhyloPlaceData/public.plusGisaid.latest.masked.pb subtreeSize: 5000 submit: Upload ``` Resolves #1035 --- src/services/external-integrations/UsherIntegration.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/external-integrations/UsherIntegration.ts b/src/services/external-integrations/UsherIntegration.ts index 7ee99994..ebee651e 100644 --- a/src/services/external-integrations/UsherIntegration.ts +++ b/src/services/external-integrations/UsherIntegration.ts @@ -5,8 +5,8 @@ import { OrderAndLimitConfig } from '../../data/OrderAndLimitConfig'; import { LapisSelector } from '../../data/LapisSelector'; const usherUrl = - 'https://genome.ucsc.edu/cgi-bin/hgPhyloPlace?db=wuhCor1&phyloPlaceTree=hgPhyloPlaceData/wuhCor1' + - '/public.plusGisaid.latest.masked.pb&subtreeSize=5000&remoteFile='; + 'https://genome.ucsc.edu/cgi-bin/hgPhyloPlace?db=wuhCor1&hgpp_org=wuhCor1&phyloPlaceTree=/gbdb/wuhCor1' + + '/hgPhyloPlaceData/public.plusGisaid.latest.masked.pb&subtreeSize=5000&remoteFile='; const defaultOrderAndLimit: OrderAndLimitConfig = { orderBy: 'random', limit: 400 }; export class UsherIntegration implements Integration { From 995f0c273e2dd2fdaa387195eaef680c04546c69 Mon Sep 17 00:00:00 2001 From: Cornelius Roemer Date: Sun, 20 Oct 2024 15:12:05 +0200 Subject: [PATCH 2/2] fix formatting --- src/models/wasteWater/constants.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/wasteWater/constants.ts b/src/models/wasteWater/constants.ts index 4300c58e..f21785e9 100644 --- a/src/models/wasteWater/constants.ts +++ b/src/models/wasteWater/constants.ts @@ -24,7 +24,7 @@ export const wastewaterVariantColors: { 'BA.2.87.1': '#56ACBC', //improv, not in sync with covariants.org 'KP.2': '#876566', //improv not in sync with covariants.org 'KP.3': '#331eee', - "XEC": "#a2a626", //improv not in sync with covariants.org + 'XEC': '#a2a626', //improv not in sync with covariants.org 'undetermined': '#969696', };