I just noted that there is already a function scran::clusterCells() which does almost everything we do with cluster_sce(), with the exception being saving the results back to a separate SCE object.
Since we can add the cluster info with a line like:
sce$clusters <- scran::clusterCells(
sce,
use.dimred = "PCA",
BLUSPARAM=NNGraphParam(k=15)
)
are we sure we need our own version of the function?
I just noted that there is already a function
scran::clusterCells()which does almost everything we do withcluster_sce(), with the exception being saving the results back to a separate SCE object.Since we can add the cluster info with a line like:
are we sure we need our own version of the function?