Hi Chris,
Was looking at the code and I noticed that on line 6372 of the plink2_matrix_calc.cc file, there is an additional
allele_ct_bases[qsr_idx] += 2;
From my understanding, the allele_ct_bases is storing the number of allele of the specific chromosome for the specific qrange. 6372 is part of the if case for non-x haploid chromosome and on line 6360, an allele count of 1 (presumably because of haploid) was added to allele_ct_bases. So I was confused why on 6372, and additional allele count of 2 is added. Would that be a bug?
Thanks
Sam