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.RdPromote 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
 SummarizedExperimentobject.- fields
 Character vector of nested fields in a
BumpyMatrixobject to promote to metadata fields of ase.- MARGIN
 Numeric of values
1or2indicating 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