Skip to content

Implement PCoA (principal coordinate analysis) #58

Description

@kescobo

Principal coordinate analysis is essentially a PCA with some transformations that make it suitable for non-metric distances where negative eigen values can be generated. It's often used in ecology for visualizing dissimilarity between different sites for example (see here for a paper describing it and an R package that implements it).

I've written an implementation for my microbiome package, but thought it might be more generally useful. I also suspect with code review from the community it will end up far better than what I've written on my own (I'm by no means an expert on linear algebra).

So I wanted to know if that code/should could be ported over here. I've verified on several matrices that my code generates the same results as the R package linked above, but I'm sure it could be made much more efficient and cleaned up a lot, with some help.

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