Skip to content

Commit

Permalink
wip(browser): correct populations per dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
rileyhgrant committed May 17, 2024
1 parent b323738 commit d41bdb4
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 26 deletions.
46 changes: 23 additions & 23 deletions browser/src/VariantPage/__snapshots__/VariantPage.spec.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -951,7 +951,7 @@ exports[`VariantPage with the dataset "gnomad_r3" has no unexpected changes 1`]
onClick={[Function]}
type="button"
>
Admixed American
European (Finnish)
</button>
</th>
<td
Expand Down Expand Up @@ -992,7 +992,7 @@ exports[`VariantPage with the dataset "gnomad_r3" has no unexpected changes 1`]
onClick={[Function]}
type="button"
>
European
Admixed American
</button>
</th>
<td
Expand Down Expand Up @@ -1279,7 +1279,7 @@ exports[`VariantPage with the dataset "gnomad_r3" has no unexpected changes 1`]
onClick={[Function]}
type="button"
>
Remaining
Remaining individuals
</button>
</th>
<td
Expand Down Expand Up @@ -10820,7 +10820,7 @@ exports[`VariantPage with the dataset "gnomad_r3_controls_and_biobanks" has no u
onClick={[Function]}
type="button"
>
Admixed American
European (Finnish)
</button>
</th>
<td
Expand Down Expand Up @@ -10861,7 +10861,7 @@ exports[`VariantPage with the dataset "gnomad_r3_controls_and_biobanks" has no u
onClick={[Function]}
type="button"
>
European
Admixed American
</button>
</th>
<td
Expand Down Expand Up @@ -11148,7 +11148,7 @@ exports[`VariantPage with the dataset "gnomad_r3_controls_and_biobanks" has no u
onClick={[Function]}
type="button"
>
Remaining
Remaining individuals
</button>
</th>
<td
Expand Down Expand Up @@ -20692,7 +20692,7 @@ exports[`VariantPage with the dataset "gnomad_r3_non_cancer" has no unexpected c
onClick={[Function]}
type="button"
>
Admixed American
European (Finnish)
</button>
</th>
<td
Expand Down Expand Up @@ -20733,7 +20733,7 @@ exports[`VariantPage with the dataset "gnomad_r3_non_cancer" has no unexpected c
onClick={[Function]}
type="button"
>
European
Admixed American
</button>
</th>
<td
Expand Down Expand Up @@ -21020,7 +21020,7 @@ exports[`VariantPage with the dataset "gnomad_r3_non_cancer" has no unexpected c
onClick={[Function]}
type="button"
>
Remaining
Remaining individuals
</button>
</th>
<td
Expand Down Expand Up @@ -30564,7 +30564,7 @@ exports[`VariantPage with the dataset "gnomad_r3_non_neuro" has no unexpected ch
onClick={[Function]}
type="button"
>
Admixed American
European (Finnish)
</button>
</th>
<td
Expand Down Expand Up @@ -30605,7 +30605,7 @@ exports[`VariantPage with the dataset "gnomad_r3_non_neuro" has no unexpected ch
onClick={[Function]}
type="button"
>
European
Admixed American
</button>
</th>
<td
Expand Down Expand Up @@ -30892,7 +30892,7 @@ exports[`VariantPage with the dataset "gnomad_r3_non_neuro" has no unexpected ch
onClick={[Function]}
type="button"
>
Remaining
Remaining individuals
</button>
</th>
<td
Expand Down Expand Up @@ -40436,7 +40436,7 @@ exports[`VariantPage with the dataset "gnomad_r3_non_topmed" has no unexpected c
onClick={[Function]}
type="button"
>
Admixed American
European (Finnish)
</button>
</th>
<td
Expand Down Expand Up @@ -40477,7 +40477,7 @@ exports[`VariantPage with the dataset "gnomad_r3_non_topmed" has no unexpected c
onClick={[Function]}
type="button"
>
European
Admixed American
</button>
</th>
<td
Expand Down Expand Up @@ -40764,7 +40764,7 @@ exports[`VariantPage with the dataset "gnomad_r3_non_topmed" has no unexpected c
onClick={[Function]}
type="button"
>
Remaining
Remaining individuals
</button>
</th>
<td
Expand Down Expand Up @@ -50308,7 +50308,7 @@ exports[`VariantPage with the dataset "gnomad_r3_non_v2" has no unexpected chang
onClick={[Function]}
type="button"
>
Admixed American
European (Finnish)
</button>
</th>
<td
Expand Down Expand Up @@ -50349,7 +50349,7 @@ exports[`VariantPage with the dataset "gnomad_r3_non_v2" has no unexpected chang
onClick={[Function]}
type="button"
>
European
Admixed American
</button>
</th>
<td
Expand Down Expand Up @@ -50636,7 +50636,7 @@ exports[`VariantPage with the dataset "gnomad_r3_non_v2" has no unexpected chang
onClick={[Function]}
type="button"
>
Remaining
Remaining individuals
</button>
</th>
<td
Expand Down Expand Up @@ -68168,7 +68168,7 @@ exports[`VariantPage with the dataset gnomad_r2_1 has no unexpected changes 1`]
onClick={[Function]}
type="button"
>
Remaining
Remaining individuals
</button>
</th>
<td
Expand Down Expand Up @@ -78173,7 +78173,7 @@ exports[`VariantPage with the dataset gnomad_r2_1_controls has no unexpected cha
onClick={[Function]}
type="button"
>
Remaining
Remaining individuals
</button>
</th>
<td
Expand Down Expand Up @@ -88178,7 +88178,7 @@ exports[`VariantPage with the dataset gnomad_r2_1_non_cancer has no unexpected c
onClick={[Function]}
type="button"
>
Remaining
Remaining individuals
</button>
</th>
<td
Expand Down Expand Up @@ -98183,7 +98183,7 @@ exports[`VariantPage with the dataset gnomad_r2_1_non_neuro has no unexpected ch
onClick={[Function]}
type="button"
>
Remaining
Remaining individuals
</button>
</th>
<td
Expand Down Expand Up @@ -108188,7 +108188,7 @@ exports[`VariantPage with the dataset gnomad_r2_1_non_topmed has no unexpected c
onClick={[Function]}
type="button"
>
Remaining
Remaining individuals
</button>
</th>
<td
Expand Down
6 changes: 3 additions & 3 deletions dataset-metadata/gnomadPopulations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,18 @@ export const populationName = (populationId: string) =>
textOrMissingTextWarning('genetic ancestry group name', GNOMAD_POPULATION_NAMES, populationId)

const ExACPopulations: PopulationId[] = ['sas', 'afr', 'amr', 'eas', 'fin', 'nfe', 'remaining']
const v2Populations: PopulationId[] = ['amr', 'nfe', 'afr', 'asj', 'eas', 'fin', 'sas', 'remaining']
const v2Populations: PopulationId[] = ['amr', 'nfe', 'afr', 'asj', 'eas', 'fin', 'sas', 'oth']
const v3Populations: PopulationId[] = [
'nfe',
'fin',
'amr',
'eur',
'ami',
'eas',
'mid',
'afr',
'sas',
'asj',
'remaining',
'oth',
]
const v4Populations: PopulationId[] = [
'afr',
Expand Down

0 comments on commit d41bdb4

Please sign in to comment.