Genotype frequency from ped or vcf files
1
1
Entering edit mode
4.5 years ago
Ale Lope ▴ 10

Hello All,

I would like to get the genotype frequency at each SNP for a specific cohort. I have 2,000 patients divided into three different diseases, so I would like to reproduce the next output (as an example) per each cohort:

          AA  AT  TT   CC  CG  GG

SNP1    .6   .3  .1    -   -   -
SNP2     -    -   -   .2  .5  .3
SNP3     -    -   -   .4  .4  .2
 :
SNPN    .6  .3   .1    -   -   -

I have .ped and vcf files format

Hopefully someone can give me a hint!

Thanks,

Ale

snp geno • 1.2k views
ADD COMMENT
3
Entering edit mode
4.5 years ago
plink2 --vcf <vcf filename> --geno-counts <column set modifier>

provides counts instead of 0..1 frequencies, but otherwise can report this information in a bunch of ways (see https://www.cog-genomics.org/plink/2.0/formats#gcount for the possible output columns, and https://www.cog-genomics.org/plink/2.0/general_usage#colset for column-set syntax).

ADD COMMENT

Login before adding your answer.

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