Skip to contents

Neutral alias of psmelt_microbiome_dataset() for feature-level long table export.

Usage

melt_features(object, relative = FALSE, value_name = "abundance")

Arguments

object

A microbiome_dataset object.

relative

Should abundance be converted to relative abundance before melting?

value_name

Name of the abundance column in the output.

Value

A data frame in long format.

Examples

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