Use plink filter --geno on cases and controls separately, within current analysis
1
0
Entering edit mode
2.4 years ago
@anna • 0

Hello

I'm using plink/1.9b5. I am filtering my dataset with --geno 0.2, but I would like to filter both cases and controls separately and keep all variants in the same output file.

I've tried the --filter-cases/--filter-controls, but as the definition of this filter says, it causes only cases/controls to be included in the current analysis. Is there a way to filter cases and controls separately while having just one output?

Thank you in advance

--geno plink cases controls • 909 views
ADD COMMENT
1
Entering edit mode
2.4 years ago

plink --bfile ... --geno 0.2 --filter-cases --write-snplist --out case_geno_filtered

plink --bfile ... --extract case_geno_filtered.snplist --geno 0.2 --filter-controls --write-snplist --out final

plink --bfile ... --extract final.snplist --make-bed

ADD COMMENT
0
Entering edit mode

It worked just fine. Thank you for the help!

ADD REPLY

Login before adding your answer.

Traffic: 2502 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6