This issue tracks adding a function and associated tests to rOpenScpCA to calculate neighhorhood purity from a given set of clusters. The function should take a PC matrix (or sce/seurat object) and data frame with clusters and cell IDs. The function should return an updated cluster data from with purity values.
Relevant discussions
https://github.com/AlexsLemonade/OpenScPCA-analysis/discussions/727 & https://github.com/AlexsLemonade/OpenScPCA-analysis/discussions/731
Proposed addition
This issue tracks adding a function and associated tests to
rOpenScpCA
to calculate neighhorhood purity from a given set of clusters. The function should take a PC matrix (or sce/seurat object) and data frame with clusters and cell IDs. The function should return an updated cluster data from with purity values.