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.
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.