Entering edit mode
8.7 years ago
stolarek.ir
▴
700
Hi,
Having a vcf or plink ped file with called variants I want in positions, where there are 2 possible alleles select only one of them (based on which one had better coverage in the sample) and from this forming a plink format file, where this allele is ina form of diploid homozygote.
Is there any straightforward way for this or I have to code my way out of this?
Kind regards
it depends of the VCF INFO and FORMAT available in your input.
If anyone will be interested I worked this out on ped plink files. First I recode A,C,T,G coding to 0,1,2 with --recode12,
then parse the ped file with this python script: