View source: R/sequence-distances-clustering.R
| summarise_sequence_cluster_stability | R Documentation |
Summarise sequence-cluster stability
summarise_sequence_cluster_stability(bootstrap, threshold = 0.8)
bootstrap |
A result from |
threshold |
Pairwise stability threshold. |
Overall, cluster-level, and low-stability pair summaries.
sequences <- data.frame(
sequence_id = rep(c("s1", "s2", "s3", "s4"), each = 4L),
sequence_order = rep(1:4, times = 4L),
state = c("A", "B", "C", "D", "A", "B", "C", "C",
"D", "C", "B", "A", "D", "C", "A", "A"),
group = rep(c("g1", "g2"), each = 8L),
stringsAsFactors = FALSE
)
distance <- compute_sequence_distance(sequences)
boot <- bootstrap_sequence_clusters(distance, k = 2L, n_boot = 5L)
summarise_sequence_cluster_stability(boot)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.