Mis labelling of lead SNP
Locus compare plot do not show the lead snp in my data.
Using the command below still do not work. Any suggestions to deal with this in R ?

locuscomparer::locuscompare(gwas_data,cqtl_data, title1 = "GWAS", title2 = "cQTL", snp = "rs28393318")
Same issue here
The problem is with the add_label() function;
function (merged, snp)
{
merged$label = ifelse(merged$rsid %in% snp, merged$rsid,
"")
return(merged)
}
Which returns row.names if you have a factor. Changing the rsid column to character solves it.
Adding this to the function would prevent such an issue.
The problem is with the add_label() function;
function (merged, snp) { merged$label = ifelse(merged$rsid %in% snp, merged$rsid, "") return(merged) }Which returns row.names if you have a factor. Changing the rsid column to character solves it.
Adding this to the function would prevent such an issue.
Hi I do not find the function add_label(), where is it? I came with the sanme queston, it did not label the SNP. Furthermore, I do not know which SNP was labled, did you find the causal SNP because i see eCAVIAR in your code. and because MySQL is connected to the Internet to plot the LD manhattan, it is not very convenient for network outage . Could we draw pictures without connecting to the Internet? Looking forward to your reply!