Skip to content

PCA with missing genotypes #143

@alimanfoo

Description

@alimanfoo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions