Hi chrchang, thank you for your reply. I would like to keep both SNPs and INDELs in the dataset. I also had seen some discussion on google group about this, and that is where I had found the link to follow to convert correctly from vcf to plink which does not work for me: https://groups.google.com/forum/#!msg/plink2-users/xDYgOnAofwo/GmGFXlE4YCYJ
As you suggested I have tried this:
./plink --vcf MACH_download/chr21.phase1_release_v3.20101123.snps_indels_svs.genotypes.refpanel.EUR.vcf.gz --set-missing-var-ids @:#\$1_\$2 --make-bed --out chr21.test
I am trying to convert the INDELs as they are in MACH (i.e. chr:pos:A1_A2), and the output looks good for cases like this:
21:39632105:G_GA
But not for cases where the alleles should be flipped:
It should be like this: 21:34884877:TATTT while it comes out in the bim file like this: 21:34884877:T_TATTTG
Is there a way to fix these cases?
Thank you very much for your help!