from clustering results, compare similarity between clusters by adjusted Randindex

find_stability(list_clusters = NULL, cluster_ref = NULL)

Arguments

list_clusters

is a object from the iterative clustering runs

cluster_ref

is a object from the reference cluster

Value

a data frame with stability scores and rand_index results

Author

Quan Nguyen, 2017-11-25

Examples

day5 <- day_5_cardio_cell_sample mixedpop2 <-new_summarized_scGPS_object(ExpressionMatrix = day5$dat5_counts, GeneMetadata = day5$dat5geneInfo, CellMetadata = day5$dat5_clusters) cluster_all <-clustering(object=mixedpop2)
#> Performing 1 round of filtering
#> Identifying top variable genes
#> Calculating distance matrix
#> Performing hierarchical clustering
#> Finding clustering information
#> No more outliers detected in filtering round 1
#> Identifying top variable genes
#> Calculating distance matrix
#> Performing hierarchical clustering
#> Finding clustering information
#> Done clustering, moving to stability calculation...
stab_df <- find_stability(list_clusters=cluster_all$list_clusters, cluster_ref = cluster_all$cluster_ref)
#> Done calculating stability...