I have a vcf files with multiple samples. I want get the genotype data from the vcf file. I do not know how to do it. Could you tell me how I can get it.
Thank you everybody.
It is my fault I did not say clearly what I want to do.
For example, I have get my vcf file is
#CHROM POS ID REF ALT QUAL FILTER INFO FORMAT sample1 sample 2 sample3 Chr01 1353 . T C 2385.77 PASS FS=0;MQ=51.64;MQ0=0;QD=29.02;SOR=0.818;BaseQRankSum=1.468;ClippingRankSum=-0.886;MQRankSum=-2.172;ReadPosRankSum=-1.03;DP=666;AF=1;MLEAC=2;MLEAF=1;AN=70;AC=67 GT:AD:DP:GQ:PL 1/1:0,15:15:48:707,48,0 0/1:36,28:64:99:1147,0,11882 1/1:0,14:14:42:630,42,0 1/1:0,29:29:87:1299,87,0
I want to get a file like as:
#CHROM POS ID REF ALT sample1 sample 2 sample3 Chr01 1353 . T C CT CC CC