The SpatialDecon library implements the SpatialDecon algorithm for mixed cell deconvolution in spatial gene expression datasets. (This algorithm also works in bulk expression profiling data.)
users must provide a count matrix and annotations that have already been read into R. This is a quick workaround for allowing all types of file types including Seurat objects.
annotations must be a dataframe rather than a named vector.
data can be normalized within function but is very basic, recommend normalizing before using function.