I am using a .bim file created in plink1.9 to do association analysis on 3 cohorts in plink2 using --glm with a --keep list of IDs, a phenotype file, and a covariate file, then using these outputs to do meta-analysis in METAL.
My issue is that the alleles in the association analysis output are different within the 3 cohorts and the .bim file, which is causing METAL to be unable to work due to expecting the alleles from the first cohort to match the other 2 cohorts.
When I look at the output from PLINK, there are 3 columns for alleles: REF, ALT, and A1. I can see that one of the cohorts has the same alleles as the .bim when looking at ALT and A1 in its output, while the other 2 cohorts do not. These 2 cohorts have the same alleles as each other in ALT and A1, however. Likewise, when REF and ALT are the same across all 3 cohorts, but this does not match the alleles in the .bim.
Is there a specific reason the alleles are not consistent, or is there a way to force the alleles to remain consistent in plink2 so that METAL can successfully process all 3 cohorts?
Thank you,
Parish