Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions website/src/layouts/base/header/getPathogenMegaMenuSections.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { MenuIconType } from '../../../components/iconCss.ts';
import { isStaging } from '../../../config.ts';
import { type Organism, organismConfig, paths } from '../../../types/Organism.ts';
import { Page } from '../../../types/pages.ts';
import {
Expand Down Expand Up @@ -102,6 +103,19 @@ export function getPathogenMegaMenuSections(): PathogenMegaMenuSections {
underlineColor: wastewaterConfig.menuListEntryDecoration,
externalLink: false,
},
// only on staging for now, remove when enabling on prod: https://github.com/GenSpectrum/dashboards/issues/1110
...(isStaging()
? [
{
label: 'RSV-B',
iconType: 'table' as MenuIconType,
href: wastewaterOrganismConfigs[wastewaterOrganisms.rsvB].path,
description: wastewaterOrganismConfigs[wastewaterOrganisms.rsvB].description,
underlineColor: wastewaterConfig.menuListEntryDecoration,
externalLink: false,
},
]
: []),
{
label: 'RSV (non-interactive)',
iconType: 'table',
Expand Down Expand Up @@ -134,6 +148,19 @@ export function getPathogenMegaMenuSections(): PathogenMegaMenuSections {
underlineColor: wastewaterConfig.menuListEntryDecoration,
externalLink: true,
},
// only on staging for now, remove when enabling on prod: https://github.com/GenSpectrum/dashboards/issues/1110
...(isStaging()
? [
{
label: 'Browse RSV-B data',
iconType: 'database' as MenuIconType,
href: wastewaterOrganismConfigs[wastewaterOrganisms.rsvB].browseDataUrl,
description: wastewaterOrganismConfigs[wastewaterOrganisms.rsvB].browseDataDescription,
underlineColor: wastewaterConfig.menuListEntryDecoration,
externalLink: true,
},
]
: []),
{
label: 'Browse non-interactive RSV & Influenza data',
iconType: 'database',
Expand Down
12 changes: 12 additions & 0 deletions website/src/pages/swiss-wastewater/rsv-b.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
import Wasap from '../../components/views/wasap/Wasap.astro';
import { isStaging } from '../../config';
import { wastewaterOrganisms } from '../../types/wastewaterConfig';

// only on staging for now, remove when enabling on prod: https://github.com/GenSpectrum/dashboards/issues/1110
if (!isStaging()) {
return Astro.redirect('/404');
}
---

<Wasap wastewaterOrganism={wastewaterOrganisms.rsvB} />
42 changes: 42 additions & 0 deletions website/src/types/wastewaterConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { VARIANT_TIME_FRAME, type WasapPageConfig } from '../components/views/wa
export const wastewaterOrganisms = {
covid: 'covid',
rsvA: 'rsv-a',
rsvB: 'rsv-b',
} as const;

export type WastewaterOrganismName = (typeof wastewaterOrganisms)[keyof typeof wastewaterOrganisms];
Expand Down Expand Up @@ -116,6 +117,47 @@ export const wastewaterOrganismConfigs: Record<WastewaterOrganismName, WasapPage
},
},
},
[wastewaterOrganisms.rsvB]: {
name: 'RSV-B',
path: `/${wastewaterPathFragment}/rsv-b`,
description: 'Analyze RSV-B data that was collected by the WISE project.',
linkTemplate: {
nucleotideMutation:
'https://genspectrum.org/rsv-b/single-variant?sampleCollectionDateRangeLower=Last+year&nucleotideMutations={{mutation}}',
aminoAcidMutation:
'https://genspectrum.org/rsv-b/single-variant?sampleCollectionDateRangeLower=Last+year&aminoAcidMutations={{mutation}}',
},
manualAnalysisModeEnabled: true,
variantAnalysisModeEnabled: true,
lapisBaseUrl: 'https://lapis.wasap.genspectrum.org/rsvb',
samplingDateField: 'samplingDate',
locationNameField: 'locationName',
clinicalLapis: {
lapisBaseUrl: 'https://lapis.pathoplexus.org/rsv-b',
dateField: 'sampleCollectionDateRangeLower',
lineageField: 'lineage',
},
browseDataUrl: 'https://db.wasap.genspectrum.org/rsvb/search',
Comment thread
fhennig marked this conversation as resolved.
browseDataDescription: 'Browse the data in the W-ASAP Loculus instance.',
defaultLocationName: 'Zurich',
clinicalSequenceCountWarningThreshold: 50,
filterDefaults: {
manual: {
mode: 'manual',
sequenceType: 'nucleotide',
mutations: undefined,
},
variant: {
mode: 'variant',
sequenceType: 'nucleotide',
variant: 'B.D.E.1*',
minProportion: 0.8,
minCount: 15,
minJaccard: 0.75,
timeFrame: VARIANT_TIME_FRAME.all,
},
},
},
};

export const wastewaterConfig = {
Expand Down