Create a dataframe of SC3 clusters for a selected number of clusters.
Source:R/clustering.R
cluster_sc3_df_fn.Rd
This function just extracts cell-cluster membership from the cluster_sce_sc3
object and generates
a cluster stability plots.
Arguments
- cluster_sce_sc3
(input target) A
SingleCellExperiment
object with calculated SC3 clustering.- sc3_k
A numeric vector: numbers of clusters for SC3.
- is_integration
A logical scalar: if
TRUE
, clusterings will be named ascluster_int_*
, otherwisecluster_*
.
Value
A tibble
whose columns are mostly self-explanatory, except the data
column, which is of list
type and
contains an another tibble
with cluster_stability_plot
column holding a ggplot
object returned from
SC3::sc3_plot_cluster_stability()
.