Question: Extracting Columns From Vcf File Using Vcftools/Perl
6.9 years ago by
Damian Kao ♦ 15k
Damian Kao ♦ 15k wrote:
This linux command will output column 1,2, and 3 of your file into csv. Change the 1,2,3 according to the column (1-based) you want to extract. You can extract as many columns as you want.
cut -f 1,2,3 fileName.vcf | sed 's/[\t]/,/g' > cols.csv
Please log in to add an answer.
Powered by Biostar version 2.3.0
Traffic: 983 users visited in the last hour