Here the number of columns in data and that of rows in cluster should not match when we select cells as in "cells.use". We need to select the rows in cluster beforehand. For example,
clusters <- clusters[names(clusters) %in% colnames(data)]
This can be problematic when we assign order.by.clusters==T, in the following
Dear Dvir,
"cells.use" function in SingleR.DrawHeatmap should not work properly when combined with some options.
This is OK, but when we assign some clusters,
Here the number of columns in data and that of rows in cluster should not match when we select cells as in "cells.use". We need to select the rows in cluster beforehand. For example,
clusters <- clusters[names(clusters) %in% colnames(data)]
This can be problematic when we assign
order.by.clusters==T
, in the followingPlease consider this. Thank you in advance.
Best, Masahito