Since you have provided neither a .log file nor a clarification of what you mean by "some alleles are swapped", I'm going to guess on behalf of future readers that you mean "ALL alleles are swapped" relative to the VCF. From the
--export documentation:
"For biallelic formats where it's unspecified whether the REF/major
allele should appear first or second, --export defaults to second for
compatibility with PLINK 1.9. Use the 'ref-first' modifier to change this."
The .haps format does not define whether REF should be first or second, so it's covered by this rule. "--export haps ref-first" puts REF alleles first.
On Friday, February 5, 2021 at 7:36:18 AM UTC-8 Katherine Fawcett wrote: