Promote a nested field to be represented as a metadata field of the SummarizedExperiment
as either the rowData
or colData
.
Source: R/concatentate_SEs.R
promote_fields.Rd
Promote a nested field to be represented as a metadata field of the SummarizedExperiment
as either the rowData
or colData
.
Usage
promote_fields(se, fields, MARGIN = c(1, 2))
Arguments
- se
SummarizedExperiment
object.- fields
Character vector of nested fields in a
BumpyMatrix
object to promote to metadata fields of ase
.- MARGIN
Numeric of values
1
or2
indicating whether to promote fields to rows or columns respectively.
Examples
mae <- get_synthetic_data("finalMAE_small")
se <- mae[[1]]
se <- promote_fields(se, "ReadoutValue", 2)
#> Warning: dropping assay 'Controls' from the final SE
#> Warning: dropping assay 'Normalized' from the final SE
#> Warning: dropping assay 'Averaged' from the final SE
#> Warning: dropping assay 'Metrics' from the final SE