This is a test version of Biostars. For the public version, visit https://www.biostars.org.
What is the logical operator for plink2 --extract-if-info?

Hello,

I know this might be a stupid question, but I have tried everything I could think of. For example

plink2 --pfile input --out output --extract-if-info gnomAD_exome_ALL '<' 0.01 '&' gnomAD_exome_AFR '<' 0.01 --make-pgen
plink2 --pfile input --out output --extract-if-info gnomAD_exome_ALL '<' 0.01 '&&' gnomAD_exome_AFR '<' 0.01 --make-pgen
plink2 --pfile input --out output --extract-if-info gnomAD_exome_ALL '<' 0.01 AND gnomAD_exome_AFR '<' 0.01 --make-pgen

None of these works

Thank you very much!

plink2

1 answer

—extract-if-info only supports a single predicate at a time for now. (This isn’t actually a problem here: just split your filtering operation across two runs.)

Log in to answer this question.