-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathorganisms.ts
More file actions
29 lines (27 loc) · 2.14 KB
/
Copy pathorganisms.ts
File metadata and controls
29 lines (27 loc) · 2.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import { allOrganisms, Organisms } from '../../src/types/Organism.ts';
import type { OrganismWithViewKey } from '../../src/views/routing.ts';
import { ServerSide } from '../../src/views/serverSideRouting.ts';
export function organismsWithView<ViewKey extends string>(viewKey: ViewKey): OrganismWithViewKey<ViewKey>[] {
return allOrganisms.filter((organism) => ServerSide.routing.isOrganismWithViewKey(organism, viewKey));
}
export const organismOptions = {
[Organisms.covid]: { lineage: 'JN.1*', lineageFieldPlaceholder: 'Nextclade pango lineage', gene: 'ORF1a' },
[Organisms.influenzaA]: { lineage: 'H1', lineageFieldPlaceholder: 'HA subtype' },
[Organisms.h5n1]: { lineage: '2.3.4.4b', lineageFieldPlaceholder: 'Clade', gene: 'PB2' },
[Organisms.h1n1pdm]: { lineage: 'C.1.9.3', lineageFieldPlaceholder: 'Clade HA', gene: 'PB2' },
[Organisms.h3n2]: { lineage: 'K', lineageFieldPlaceholder: 'Clade HA', gene: 'PB2' },
[Organisms.influenzaB]: { lineage: 'vic', lineageFieldPlaceholder: 'Lineage' },
[Organisms.victoria]: { lineage: 'V1A.3a.2', lineageFieldPlaceholder: 'Clade HA', gene: 'PB2' },
[Organisms.westNile]: { lineage: '1A', lineageFieldPlaceholder: 'Lineage', gene: 'NS1' },
[Organisms.rsvA]: { lineage: 'A.D.5.2', lineageFieldPlaceholder: 'Lineage', gene: 'NS1' },
[Organisms.rsvB]: { lineage: 'B.D.E.1', lineageFieldPlaceholder: 'Lineage', gene: 'NS1' },
[Organisms.mpox]: { lineage: 'sh2017/F.1', lineageFieldPlaceholder: 'Outbreak & Lineage', gene: 'OPG001' },
[Organisms.ebolaSudan]: { mutation: 'G5902T', gene: 'NP' },
[Organisms.ebolaZaire]: { mutation: 'T18365C', gene: 'NP' },
[Organisms.cchf]: { mutation: 'M:G3565A', gene: 'RdRp' },
[Organisms.denv1]: { lineage: '1I_K.1.1', lineageFieldPlaceholder: 'Clade', gene: 'NS1' },
[Organisms.denv2]: { lineage: '2II_F.1.1', lineageFieldPlaceholder: 'Clade', gene: 'NS1' },
[Organisms.denv3]: { lineage: '3III_B.3.2', lineageFieldPlaceholder: 'Clade', gene: 'NS1' },
[Organisms.denv4]: { lineage: '4II_B.1.2', lineageFieldPlaceholder: 'Clade', gene: 'NS1' },
[Organisms.measles]: { lineage: 'B3', lineageFieldPlaceholder: 'Genotype', gene: 'N' },
};