The allel.stats.decomposition.pca function does not allow for missing data in the genotypes array. If I build the geno array using geno = genotypes.to_n_alt() it will work, but with geno = genotypes.to_n_alt(fill=-1) it does not work. The problem with the first way though is that the default fill=0 will make the missing data appear as homozygous for the reference allele, which will greatly bias the results.
The allel.stats.decomposition.pca function does not allow for missing data in the genotypes array. If I build the geno array using geno = genotypes.to_n_alt() it will work, but with geno = genotypes.to_n_alt(fill=-1) it does not work. The problem with the first way though is that the default fill=0 will make the missing data appear as homozygous for the reference allele, which will greatly bias the results.