I have vcf file.I am trying to extract ID ,SNPs and SNP ID's in the following way :
It has to conform with the following format.
i)The first row should contain the IDs of subjects.
ii)The first column should contain the IDs of SNPs.
iii)Entry (i,j) should indicate the value of subject j in SNP i. The entry of the first row-first column is a string "SNP".
Please help me how to do this by using vcf or bcftools. Thanks in Advance