Orients Z and weights to the allele the dosage matrix counts. Uses the exact counted allele from PLINK if available, falling back to the EAF frequency match (XOR rule). Drops palindromic SNPs and frequency-ambiguous SNPs.
Arguments
- sumstats
Output of
read_sumstats.- bim
Output of
read_bim.- ld
Output of
ld_matrix.- freq_tol
Maximum |EAF - reference frequency| tolerance.