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

Request: plink2 --extract/exclude-if-info [key(s)...] #254

Open
kscott-1 opened this issue Jan 23, 2024 · 1 comment
Open

Request: plink2 --extract/exclude-if-info [key(s)...] #254

kscott-1 opened this issue Jan 23, 2024 · 1 comment

Comments

@kscott-1
Copy link

Is it possible to implement an improvement to this flag to allow for multiple INFO filters in the initial vcf to pgen conversion?

plink2 --vcf file.vcf --extract-if-info "A == 1" --extract-if-info "B == 2" --make-pgen

This results in the following error:

Error: Duplicate --extract-if-info flag.

Ideally, I have an INFO flag which I would like to filter like "0 < A < 1" as well, i.e. I'd like to do:

plink2 --vcf file.vcf --extract-if-info "(0 < A < 1) && (B == 2)" --make-pgen or some form of that

Thanks!

(Using Jan 5 a5.10 build)

@chrchang
Copy link
Owner

I may implement this at some point, but this is relatively low-priority since (i) bcftools already handles this and (ii) if bcftools is really too slow, splitting this type of filter across two plink2 commands isn't a big deal.

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