I am using the `--ref-allele force` command to swap alleles in a VCF file. The VCF file has both PHASED genotypes (it's actually 1KG) and UNPHASED genotypes. I noticed that after using this command some unphased genotypes appear as phased.
For example, keeping just one sample from my VCF file and estimating the frequency of the 0/0 0/1 and 0/1 genotypes before the --ref-alleles gives me:
I noticed that only homozygous genotypes have phased information now, which is fine. I just want to know if this is the default/intended behavior of this command. What will happen if all my samples are phased? I assume the original phase will be retained? I saw on this post that there were some issues with this command before but appear to be solved using the latest version, which I am using.
Thank you.
PLINK v2.00a2LM 64-bit Intel (5 Jul 2019)
www.cog-genomics.org/plink/2.0/(C) 2005-2019 Shaun Purcell, Christopher Chang GNU General Public License v3
Logging to test.log.
Options in effect:
--export vcf-iid
--out test
--ref-allele force test_chr22_alleles_2swap.txt 2 1
--vcf test_chr22_4AAswap.vcf.gz
Start time: Mon Jul 8 14:28:09 2019
Note: --export 'vcf-iid' modifier is deprecated. Use 'vcf' + 'id-paste=iid'.
64453 MiB RAM detected; reserving 32226 MiB for main workspace.
Using up to 12 threads (change this with --threads).
--vcf: 187885 variants scanned.
--vcf: test-temporary.pgen + test-temporary.pvar + test-temporary.psam written.
312 samples (0 females, 0 males, 312 ambiguous; 312 founders) loaded from
test-temporary.psam.
187885 variants loaded from test-temporary.pvar.
Note: No phenotype data present.
--ref-allele: 21409 sets of allele codes rotated.
--export vcf to test.vcf ... done.
End time: Mon Jul 8 14:28:11 2019