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

Problems with mtCOJO #82

Open
Zhangzzzzzy opened this issue Jun 8, 2024 · 1 comment
Open

Problems with mtCOJO #82

Zhangzzzzzy opened this issue Jun 8, 2024 · 1 comment

Comments

@Zhangzzzzzy
Copy link

When I try to run mtcojo, the following error is reported, but when I check my data, there are no duplicates of SNPs, and I don't know what the reason is.

**Accepted options:
--mbfile test.txt
--mtcojo-file gwas.txt
--ref-ld-chr eur_w_ld_chr/
--w-ld-chr eur_w_ld_chr/
--out test_result

There are 1 PLINK genotype files specified in [test.txt].

Reading the PLINK FAM files ....
503 individuals have been included from the PLINK FAM files.
Reading the PLINK BIM files ...
8550156 SNPs to be included from PLINK BIM files.

Reading GWAS summary data from [gwas.txt] ...
Error: Duplicated SNP ID found: ..
An error occurs, please check the options or data**

The text of my test.txt reads:
EUR
The text of my gwas.txt reads:
drink test1.txt
smoke test2.txt

@anglixue
Copy link
Collaborator

anglixue commented Jun 8, 2024

It seems the duplicated SNP ID is a single dot. This happened when rsID was not found so people use a single dot to represent the SNP id
Assume your gwas object is called df and the SNP id column as SNP
You might want to check
sum(df$SNP==".")

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

2 participants