How to generate a .raw file from vcf in plink
1
0
Entering edit mode
2.3 years ago
antmantras ▴ 80

Hi all.

I am trying to convert my vcf file to a readable format in R using plink. Specifically, I want a .raw file to follow up the workflow of a recent paper.

I have tried:

plink --vcf myfile.vcf.gz --export A --out ofile --allow-extra-chr 

but the SNP headers look like ".G" instead of "SNP1_1515.G". What is wrong here?

Many thanks.

Edit: I know I can get the desired output using the .bim file, but was wondering about approximation in plink with one command.

plink vcf • 1.3k views
ADD COMMENT
0
Entering edit mode
19 months ago
plink --vcf yourfile.vcf --recode A --out yourfile
ADD COMMENT

Login before adding your answer.

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