bimberlabinternal / CellMembrane

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

nCountRNAStratification within PseudobulkSeurat has matrix vs vector related issues #257

Open GWMcElfresh opened 5 months ago

GWMcElfresh commented 5 months ago

If there's a single unsupervised cluster within a dataset (common in low-abundance celltypes or tissues with hashing problems), nCountRNAStratification will error with

unable to find an inherited method for function 'KLdiv' for signature '"numeric"'

I suspect this is because an ClusterNames x groupFields matrix intends to be formed, but gets squashed to a 1 x groupFields vector.