I have a phased vcf file and I would like to express the snp sequence into numeric sequence.
For unphased data, this can be easily done by expressing 0/0 as 0, 0/1 as 1 and 1/1 as 2
but for phased data this annotation kind of takes away the phasing information.
Do you have any suggestions?
Thank you in advance.