Description Usage Arguments Value Examples
View source: R/scclusterboot.R
Assign stable cluster
1 2 3 4 5 6 7 | AssignStableCluster(
idents1,
idents2,
method = "jaccard_median",
jaccard_cutoff = 0.6,
percent_cutoff = 0.6
)
|
idents1 |
A list of cluster identity copied from the orginal data sets. idents1 is a list of the cluster identity from the subsampled data sets before reclustering. |
idents2 |
A list of cluster identity from the subsampled data sets. idents2 is a list of the cluster identity from the subsampled data sets after reclustering. The order of identities in idents1 and idents2 should correspond to each other. |
method |
what way to summarize the jaccard index across all simulations. to determine a cluster is stable or not. options are "Jaccard_mean", "Jaccard_median" and "Jaccard_percent" |
jaccard_cutoff |
Cutoff of the jaccard index to determin a cluster is stable or not. it is the mean or median cutoff when the method is "jaccard_mean" or "jaccard_median" and it is the cutoff for every subsampling when the method is "jaccard_percent" |
percent_cutoff |
The percentage of jaccard index greater than jaccard_cutoff. Used when method is "jaccard_percent". specify 0.6 when you mean 60%. |
A list containing the raw data for jaccard index for all simulations, TRUE or FALSE of stable cluster for each cluster and a number of stable clusters. A cluster is deemed as stable if the median (or mean) jaccard index is > cutoff. in addtion, a stable_index is calculated, which is the pecentage of jaccard index > cutoff for all the subsampling. e.g. for 100 times subsampling, 0.8 means 80% of the time, the jaccard index is > cutoff. Sometimes, we see bimodal distrbution of the 100 jaccard index, the percentage is a better measurement than the mean or median of the 100 jaccard index.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.