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

snpgdsCombineGeno makes new snp.id when combine multiple gds files #77

Open
yanglipmed opened this issue Dec 23, 2020 · 2 comments
Open

Comments

@yanglipmed
Copy link

I have several gds files. Their snp.id are numeric but not continuous. Gds file 1 has snp.id like 1, 2, 3, ...,10; Gds file 2 has 20, 21, ...., 30. (Our original gds files don't use rsID for each SNP)
After I used snpgdsCombineGeno, the new gds file changed snp.id to make it continous, like 1,2,3,...10,11,...20. I cannot keep the original snp.id.

@zhengxwen
Copy link
Owner

You can use the functions in the gdsfmt package to change snp.id in the new GDS file:

add.gdsn(f, "snp.id", your_new_snp_id, replace=TRUE)

@yanglipmed
Copy link
Author

Will snpgdsCombineGeno change the order of these SNPs from multiple gds files? I cannot check it, as SNP IDs have been changed.

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