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

pgenlibr: get chromosome and position for idx #170

Open
niekverw opened this issue Feb 18, 2021 · 3 comments
Open

pgenlibr: get chromosome and position for idx #170

niekverw opened this issue Feb 18, 2021 · 3 comments

Comments

@niekverw
Copy link

I was wondering if it's possible to obtain the chromosome and position by idx using pgenlibr, or if it is possible to add this feature?

Thanks so much. The pgenlibr is really useful for an R user like me.

@chrchang
Copy link
Owner

This isn't currently built-in, but if you use plink2 --set-all-var-ids on your dataset first, it's straightforward to extract chrom/pos from the ID strings.

@niekverw
Copy link
Author

Thanks for your answer!
I understand, but I actually need the ID's to be as they are, since they can be genes or other variants that are not captured by the position/variants alone.

@chrchang
Copy link
Owner

You can use --recover-var-ids to recover the original IDs whenever they're needed.

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