Skip to contents

Setup

set_cibersort_binary()
Set Path to CIBERSORT R script (CIBERSORT.R)
set_cibersort_mat()
Set Path to CIBERSORT matrix file (LM22.txt)

Datatype conversion

anndata_to_singlecellexperiment()
Convert AnnData to SingleCellExperiment
anndata_to_spatialexperiment()
Convert AnnData to SpatialExperiment
seurat_to_spatialexperiment()
Convert Seurat to SpatialExperiment
subsetSCE()
Subset a SingleCellExperiment by Cell Type
subsetSPE()
Isolate Regions within a SpatialExperiment Object
spe_to_ad()
Convert Spatial Experiment to AnnData

Main Workflow

deconvolution_methods
List of supported deconvolution methods
preprocess()
Preprocess Single Cell and Spatial Data for analysis in spacedeconv
normalize()
Normalize Gene Expression Data in SingleCellExperiment or SpatialExperiment Objects
build_model()
Build a reference signature
deconvolute()
Deconvolution with spacedeconv
build_and_deconvolute()
Build Model and Deconvolute in one step
available_results()
Check wich deconvolutionr results are available in a SpatialExperiment object

Custom access to methods

build_model_card()
No signature calculated, just call the deconvolute method
build_model_cell2location()
Build Model Cell2location
build_model_immunedeconv()
No signature calculated, just call the deconvolute method
build_model_omnideconv()
Build Reference
build_model_rctd()
RCTD builds the model internally, please just use the deconvolute method
build_model_spatial_dwls()
Build Model Spatial DWLS
build_model_spotlight()
Build Model SPOTlight
deconvolute_card()
Deconvolute CARD
deconvolute_cell2location()
Deconvolute Cell2location
deconvolute_immunedeconv()
Deconvolute Immundeconv
deconvolute_immunedeconv_mouse()
Deconvolute Immunedeconv mouse
deconvolute_omnideconv()
Deconvolute Omnideconv
deconvolute_rctd()
RCTD Deconvolution
deconvolute_spatial_dwls()
Deconvolute Spatial DWLS
deconvolute_spotlight()
Deconvolute SPOTlight

Visualization

plot_gene()
Function to plot gene expression
plot_spatial()
Function to plot deconvolution results
plot_celltype()
Function to plot deconvolution results
plot_umi_count()
Function to plot deconvolution results
plot_ndetected_genes()
Plot number of detected genes
plot_most_abundant()
Function to plot deconvolution results
plot_comparison()
Plot celltype fraction comparison
plot_scatter()
Comparative Scatterplot of Two SpatialExperiments
plot_overview()
Plot Overview of a SpatialExperiment

Sample Data

single_cell_data_1
Example single cell dataset 1 from Wu et al.
single_cell_data_2
Example single cell dataset 2 from Wu et al.
single_cell_data_3
Example single cell dataset 3 from Wu et al.
single_cell_data_4
Example single cell dataset 4 from Wu et al.
spatial_data_1
Example spatial dataset 1 from Wu et al.
spatial_data_2
Example spatial dataset 2 from Wu et al.
spatial_data_3
Example spatial dataset 3 from Wu et al.
spatial_data_4
Example spatial dataset 4 from Wu et al.

Utils

aggregate_results()
Aggregate Deconvolution Results
annotate_spots()
Annotate Specific Spots within a SpatialExperiment Object
addCustomAnnotation()
Extend a SpatialExperiment with a New Annotation Column
cluster()
Cluster spacedeconv results
get_cluster_features()
Get cluster features
print_info()
Print info about dataset
filter_sample_id()
Filter SPE to contain only one sample ID
compare_signatures()
Compare Signatures
convert_human_to_mouse()
map human to mouse genes
convert_mouse_to_human()
map mouse to human genes
spatialcorr()
create a correlation plot
get_lr()
Compute L-R score for each spot
gene_set_score()
Calculate Gene Set Score
scale_cell_counts()
Scale relative cell fractions to absolute by providing cell densities
corr_expr()
Heatmap correlation of cell types based on gene expression values

DecoupleR

get_decoupleR_reference()
Fetch Pathway or Transcription Factor Signatures from decoupleR
compute_activities()
Compute Pathway and Transcription Factor Activities and integrate into SpatialExperiment Using decoupleR