bug in scone_eval
Closed this issue · 1 comments
allonw commented
In scone_eval:
BATCH_SIL <- summary(cluster::silhouette(as.numeric(na.omit(batch)),
dd[!is.na(batch),!is.na(batch)]))$avg.width
throws exception:
Error in summary(cluster::silhouette(as.numeric(na.omit(batch)), dd[!is.na(batch), :
$ operator is invalid for atomic vectors
when batch is one-dimensional
allonw commented
turns out the bug occurred when batch/bio had only one factor left after cell filtering --> pushed fix