Entering edit mode
8.9 years ago
abascalfederico
★
1.2k
I am working with 1000G vcf files. These files contain an AA field indicating which is the Ancestral Allele. I would like to use this information to recode the vcf file. When the REF allele is different from the AA, REF and ALT alleles should be switched, AF fields recalculated (derived AF=1-AF), and genotypes be properly recoded (1/1 --> 0/0, 0/1 --> 0/1...).
Are you aware of any tool doing this? If there were no such tool, I would probably try myself and share the script here.
Thanks!
Federico