Closed msbrasher closed 2 months ago
Hi @msbrasher,
Thanks for raising this. I've pushed a fix to the code for link_LD()
. It should be able to cope with your example now. Note this only seems to work for the LDproxy
method. LDlinkR::LDmatrix()
returns rs IDs even if you provide chromosome coordinate SNP ids. So matching will fail within the locus object. Let me know if it works ok.
Bw, Myles
Hi Myles,
Looks like it's working great now! Thank you so much for the fast response!
Maizy
Hi Myles
I am trying to create plots for loci on the X-chromosome, and I'm running into trouble with adding LD information where the link_LD() function is running, but returning zero matched SNPs (see output below).
The output plots look great other than the missing LD information:
Here is the code to reproduce (and test file gwas.txt):
The comparable query directly to the LDproxy function in the LDlinkR package does return LD results
out <- LDproxy(snp = "chrX:55627300", pop = "EUR", token = token, genome_build = "grch38_high_coverage")
For reference: The GWAS summary stats I have are from TOPMed imputed data, so they are hg38, and the index SNPs I'm interested in are only present in the grch38_high_coverage build. I'm not sure if using that build might be causing the problem? I'm using locuszoomr version 0.3.1