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.
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 exampleThis 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.