R/extract_abundance.R
melt_features.Rd
Neutral alias of psmelt_microbiome_dataset() for feature-level long table export.
psmelt_microbiome_dataset()
melt_features(object, relative = FALSE, value_name = "abundance")
A microbiome_dataset object.
microbiome_dataset
Should abundance be converted to relative abundance before melting?
Name of the abundance column in the output.
A data frame in long format.
data("global_patterns", package = "microbiomedataset") x <- melt_features(global_patterns) head(x[, c("sample_id", "variable_id", "abundance")]) #> sample_id variable_id abundance #> 1 CL3 549322 0 #> 2 CC1 549322 0 #> 3 SV1 549322 0 #> 4 M31Fcsw 549322 0 #> 5 M11Fcsw 549322 0 #> 6 M31Plmr 549322 0