Skip to content

Commit

Permalink
wip: add new top level dataset type
Browse files Browse the repository at this point in the history
  • Loading branch information
rileyhgrant committed Sep 23, 2024
1 parent 639cb7e commit 6010dbe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dataset-metadata/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1160,7 +1160,9 @@ export const baseDatasetForReferenceGenome = (genome: ReferenceGenome): DatasetI
export const hasJointFrequencyData = (datasetId: DatasetId): boolean =>
getMetadata(datasetId, 'hasJointFrequencyData')

export const getTopLevelDataset = (datasetId: DatasetId) => {
export type TopLevelDataset = 'v4' | 'v3' | 'v2' | 'ExAC' | 'default'

export const getTopLevelDataset = (datasetId: DatasetId): TopLevelDataset => {
if (isV4(datasetId)) {
return 'v4'
}
Expand Down

0 comments on commit 6010dbe

Please sign in to comment.