# Limit the number of threads used by the underlying DB for this session.
# Change this only if you know what you're doing (e.g., multi-user machines, shared CI/servers).
db_exec("SET threads TO 1")
# Load data
if (FALSE) {
immdata <- get_test_idata() |> agg_repertoires("Therapy")
}
#
# airr_diversity_dxx
#
if (FALSE) {
d50 <- airr_diversity_dxx(immdata, perc = 50)
d_multi <- airr_diversity_dxx(immdata, perc = c(20, 50, 80))
}
#
# airr_diversity_chao1
#
if (FALSE) {
chao <- airr_diversity_chao1(immdata)
}
#
# airr_diversity_shannon
#
if (FALSE) {
sh <- airr_diversity_shannon(immdata)
}
#
# airr_diversity_pielou
#
if (FALSE) {
pj <- airr_diversity_pielou(immdata)
}
#
# airr_diversity_index
#
if (FALSE) {
idx <- airr_diversity_index(immdata)
}
#
# airr_diversity_hill
#
if (FALSE) {
hill <- airr_diversity_hill(immdata, q = c(0, 1, 2))
}
Run the code above in your browser using DataLab