Closed GemmaTuron closed 1 year ago
This commit has created tables for each gene that contain the haplotype information and the different variants in each haplotype.
Hello @GemmaTuron - this is great stuff, thanks. As discussed, great that you deconvolute haplotypes to variants (see related issue #15)
This is already done in the mentioned commit.
I have improved the haplotype to variant deconvolution to ensure maximum correspondence in the variant name so that we can have all the variant ID (vid) which enable us to query pharmgkb easily using the API.
This is still work in progress as some variant names like the NAT1 9bp deletion
do not correspond to the actual name in the API -- needs manual curation
Commit
I have finished the deconvolution, all variants inside haplotyps for which a variant ID is available are now associated in the file hap_var_complete.csv
changes in this commit.
PharmGKB oftentimes puts together variants and haplotypes in the downloaded files (See for example, clinicalAnnotations) We need to map each haplotype to the variants it contains (for example, for CYP2B6*1). We will automaticlaly download all the available allele tables per gene, curate and add them to the existing files