Extracting genotype count for case-control study

201 views
Skip to first unread message

N

unread,
Nov 19, 2015, 12:07:41 PM11/19/15
to plink2-users
I'm using PLINK to find SNP that are associated with case-control study.
I used the --assoc flag, and I found some interesting SNPs.
But, it gives allele frequencies, and want to get genotype count (#homozygous for a1, #hom. for a2 and #hetrozygous) for case and control separately.
Is it possible?
--freqx does print genotype count, but this is for case an control together and not separately.

Christopher Chang

unread,
Nov 19, 2015, 12:16:52 PM11/19/15
to plink2-users
Try --freqx + --filter-cases/--filter-controls.

N

unread,
Nov 19, 2015, 1:11:30 PM11/19/15
to plink2-users
Thanks

N

unread,
Nov 19, 2015, 3:28:24 PM11/19/15
to plink2-users
Another issue:
Can I make it works with case control from an alternate phenotype file?
Because now, I see it detect cases and control only from the dummy phenotype it has in binaries.
I tried  --pheno, but with no success

Christopher Chang

unread,
Nov 19, 2015, 3:40:08 PM11/19/15
to plink2-users
Strange, --pheno should work with --freqx + --filter-{cases,controls}.  Can you post the .log file from your failing run?

N

unread,
Nov 19, 2015, 3:44:37 PM11/19/15
to plink2-users
Here is the log file
chr22_count_cases.log

Christopher Chang

unread,
Nov 19, 2015, 3:52:29 PM11/19/15
to plink2-users
Can you clarify what the problem is?  The .log file implies that the case/control phenotypes from the --pheno file are being used; is this not actually happening?

N

unread,
Nov 19, 2015, 4:28:41 PM11/19/15
to plink2-users
What I see is that --pheno works for a given phenotype (e.g, with the flag --pheno), but not with the flag , --all-pheno which is expected to generate a feqx file for each phenotype. 

Christopher Chang

unread,
Nov 19, 2015, 4:32:15 PM11/19/15
to plink2-users
Ah.  That's because --all-pheno currently only affects association analysis commands like --linear; you'll need to write a short shell script to emulate it for other commands (the --mpheno flag will be helpful here).

N

unread,
Nov 19, 2015, 4:46:33 PM11/19/15
to plink2-users
OK, I'll do that

Josef Frank

unread,
Nov 20, 2015, 3:07:20 AM11/20/15
to plink2-users

How about using the --hardy option?

This provides genotype counts separately for cases and controls as well as for the pooled sample
 
Reply all
Reply to author
Forward
0 new messages