broadinstitute / genetic-prevalence-estimator

https://genie.broadinstitute.org/
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

Allow custom variant list for GRCh38 #178

Closed rileyhgrant closed 7 months ago

rileyhgrant commented 7 months ago

Resolves #177

Custom variant lists use a function from @gnomad/identifiers to normalize the variant ID. With GRCh38, hail expects contig values to be formatted as "chr1" rather than "1" for example

This is a very small PR that checks the reference genome (by proxy of gnomad_version in the request) and appends "chr" onto contigs as needed for variant lists created with a GRCh38 gnomad dataset.


This was tested locally in my dev instance, and results in a list being successfully created, rather than hail raising an error that gets reported to the user on the frontend.