
Aggregate Deconvolution Results
aggregate_results.RdCombines multiple result columns into a single aggregated column in a
SpatialExperiment. You can pass a list of cell types (cell_types) or use
the deprecated two-parameter form (cell_type_1, cell_type_2) for backward
compatibility.
Usage
aggregate_results(
spatial_obj = NULL,
cell_types = NULL,
cell_type_1 = NULL,
cell_type_2 = NULL,
name = NULL,
remove = FALSE
)Arguments
- spatial_obj
SpatialExperimentcontaining deconvolution results.- cell_types
List of cell types to aggregate (preferred). If provided,
cell_type_1andcell_type_2are ignored.- cell_type_1
(Deprecated) First cell type to aggregate.
- cell_type_2
(Deprecated) Second cell type to aggregate.
- name
Optional name for the aggregated result. Defaults to concatenated cell type names.
- remove
Logical; remove the original cell type columns after aggregation.