Extract Sample Metadata from MultiAssayExperiment or SummarizedExperiment
Source:R/pivot_sample.R
pivot_sample.Rd
Extracts and formats sample-level metadata (colData
) from a MultiAssayExperiment
or SummarizedExperiment
object.
Arguments
- x
A
MultiAssayExperiment
orSummarizedExperiment
object.- ...
Additional arguments passed to
tidybulk::pivot_sample()
forSummarizedExperiment
objects.
Details
This function:
Extracts sample metadata from
MultiAssayExperiment
usingcolData()
, converting it to a tibble.Calls
tidybulk::pivot_sample()
when applied to aSummarizedExperiment
object.Error Handling: Returns an error if
x
is not aMultiAssayExperiment
orSummarizedExperiment
.