Divide SPE object into smaller objects by column features
split_spe.Rdsplit_spe() splits an SPE object into smaller objects
by a column feature. Ideally this should be in the SpatialExperiment
class or some utility package.
Examples
data(smallPancData)
data(pancMeta)
data(protMeta)
pooledPanc <- dplyr::bind_cols(smallPancData)
panc.spe <- convert_to_spe(pooledPanc, pancMeta, protMeta,
feature_meta_colname = "pancProts")
#> Spatial object created without spatial coordinate
#> column names provided. Distance based analysis will not be enabled.
#> Note: Only mapping metadata for 2986 features out of 3000 data points
split_list <- split_spe(panc.spe, split_colname = "Image")
#> Spatial object created without spatial coordinate
#> column names provided. Distance based analysis will not be enabled.
#> Spatial object created without spatial coordinate
#> column names provided. Distance based analysis will not be enabled.
#> Spatial object created without spatial coordinate
#> column names provided. Distance based analysis will not be enabled.