Learn R Programming

microSTASIS (version 0.1.0)

stabilitas: Extract the stability results of individuals from the output of iterative_clustering().

Description

Those individuals whose samples are clustered under the same label in list[[x]]$cluster sum 1. If samples are in different clusters sum 0. Then, this is done for all possible values of k and, finally, divided the sum by k, so obtaining a value between 0 and 1.

Usage

stabilitas(klist, common)

Arguments

klist

input list corresponding to the output of iterative_clustering().

common

pattern that separates the ID and the sampling time.

Value

<U+00B5>STASIS stability score (mS) for the individuals from the two selected sampling times.

Examples

Run this code
# NOT RUN {
t1_t2 <- paired_times(data = clr[,1:50], first = "_1",
                      second = "_25", common = "_0_")
klist_t1_t2 <- iterative_clustering(data = t1_t2, parallel = FALSE)
result_t1_t2 <- stabilitas(klist_t1_t2, common = "_0_")
# }

Run the code above in your browser using DataLab