ps_seriate | R Documentation |
Uses seriation methods from seriation::seriate and often dist_calc (depending on if seriation method requires a distance matrix)
ps_seriate(
ps,
method = "OLO_ward",
dist = "bray",
tax_transform = "identity",
add_variable = FALSE,
rank = NA
)
ps |
phyloseq object |
method |
seriation method for ordering samples, from seriation::seriate |
dist |
distance method for dist_calc (only used if required for particular seriation method!) |
tax_transform |
transformation to apply before seriation or any distance calculation |
add_variable |
add a variable to the sample data indicating seriation order |
rank |
taxonomic rank to aggregate at, before seriation, NA for no aggregation |
phyloseq
ps_arrange
ps_reorder
library(phyloseq)
data("dietswap", package = "microbiome")
dietswap %>%
sample_data() %>%
head(8)
dietswap %>%
tax_agg("Genus") %>%
ps_get() %>%
ps_seriate(method = "OLO_ward", dist = "bray") %>%
sample_data() %>%
head(8)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.