number of homozygotes with phenotype
1
0
Entering edit mode
3 months ago
ccagg ▴ 60

I have individuals with plink-formatted genotypes, and a phenotype file containing many binary phenotypes. I want to know how many people have the phenotype and are also homozygous for the alt allele. I know that in PLINK I can easily find the minor allele frequencies of the case/controls with --assoc

plink --bfile <input>  --assoc --pheno <phenotype> --all-pheno --out <output> 

However, since I'm interested in running a recessive association test (using plink --glm recessive) I want to filter my SNPs to only those that have some threshold of recessive individuals with the phenotype. Is there any way to do this natively within PLINK or is this something I will have to do with python or R?

plink gwas • 367 views
ADD COMMENT
2
Entering edit mode
3 months ago

plink2 --bfile <input> --pheno <phenotype> --keep-if "<phenotype> == case" --geno-counts --out <output>

should generate a genotype-count report (https://www.cog-genomics.org/plink/2.0/formats#gcount ), where the TWO_ALT_GENO_CTS column should contain the number of homozygous-minor genotypes.

ADD COMMENT
0
Entering edit mode

amazing, thanks!!

ADD REPLY

Login before adding your answer.

Traffic: 2169 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