Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mis labelling of lead SNP #9

Open
1Coleman opened this issue Aug 9, 2020 · 3 comments
Open

Mis labelling of lead SNP #9

1Coleman opened this issue Aug 9, 2020 · 3 comments

Comments

@1Coleman
Copy link

1Coleman commented Aug 9, 2020

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 ?
Screenshot 2020-08-09 at 22 47 16

locuscomparer::locuscompare(gwas_data,cqtl_data, title1 = "GWAS",
title2 = "cQTL", snp = "rs28393318")

@lebf3
Copy link

lebf3 commented Jan 9, 2021

Same issue here

@lebf3
Copy link

lebf3 commented Jan 9, 2021

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.

@Captain-Pam
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants