bimberlabinternal / CellMembrane

An R package with wrappers and pipelines for single cell RNA-seq analysis
10 stars 3 forks source link

Investigate CalculateClusterEnrichment edge case #274

Open GWMcElfresh opened 1 week ago

GWMcElfresh commented 1 week ago

When a cluster is 100% comprised of a single individual, CalculateClusterEnrichment fails in an unexpected way.

It is probably here: https://github.com/bimberlabinternal/CellMembrane/blob/85ff116bf93510f7eac107a5d57d53d034e0e8fe/R/Analysis.R#L384-L390

If a cluster only has one subject, then it probably only has one group and this check fails.