PLINK file format case control status
1
0
Entering edit mode
5.0 years ago
yehchan57 ▴ 10

I have the joint vcf file for both case and control samples, I wonder how can I convert it to the ped and map format to be used by PLINK tools. I need to distinguish the case and control sample which I can not find any answers on the internet before!

GWAS plink • 2.2k views
ADD COMMENT
2
Entering edit mode

Note that ped+map has not been plink’s preferred format since 2007, and is not even supported at all by plink 2.0 alpha builds (while VCF is supported). You probably want to convert to a plink binary format (bed+bim+fam) instead.

ADD REPLY
0
Entering edit mode

What specifically is unclear after reading the plink documentation about vcf input?

ADD REPLY
1
Entering edit mode
5.0 years ago
zx8754 12k

VCF file does not contain phenotype. First we need to convert it to plink format:

plink --vcf myFile.vcf --recode --out myPlink

Then supply the phenotype file when running other tests, for example association:

plink --file myPlink --pheno myPhenotypeFile.txt --pheno-name CaseControl --assoc --out myPlinkAssociation

The phenotype file myPhenotypeFile.txt will contain 3 columns, something like:

FID IID CaseControl
Fam1 Sample1 1
Fam2 Sample2 2
...
ADD COMMENT
0
Entering edit mode

The positions are different among this vcf files so how can I handle this problem?

ADD REPLY

Login before adding your answer.

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