Adding dosage for a SNP as a covariate to a phenotype file
1
0
Entering edit mode
4.0 years ago
khn ▴ 130

Hello

I want to add a SNP information to a phenotype file, in addition to sex, age and PC 1~10. Does anybody know how to do it? I think I need to retrieve dosage information from vcf.gz file first, then retrieve dosage information only for the SNP. Is this how you guys usually do?

Thank you in advance!

SNP genome gene • 849 views
ADD COMMENT
1
Entering edit mode
4.0 years ago
Lemire ▴ 940

This is something you can do with vcftools. E.g. assuming your dosage is DS:

vcftools --gzvcf vcffile.vcf.gz --extract-FORMAT-info DS \
--snp rs12345 --out outputprefix

and you will get a text file with your dosage information for that particular snp.

ADD COMMENT

Login before adding your answer.

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