Create visualization for cell proximity feature scores
plotCellProximityFeats(
gobject,
icfObject,
method = c("volcano", "cell_barplot", "cell-cell", "cell_sankey", "heatmap", "dotplot"),
min_cells = 4,
min_cells_expr = 1,
min_int_cells = 4,
min_int_cells_expr = 1,
min_fdr = 0.1,
min_spat_diff = 0.2,
min_log2_fc = 0.2,
min_zscore = 2,
zscores_column = c("cell_type", "feats"),
direction = c("both", "up", "down"),
cell_color_code = NULL,
show_plot = NULL,
return_plot = NULL,
save_plot = NULL,
save_param = list(),
default_save_name = "plotCellProximityFeats"
)
giotto object
ICF (interaction changed feature) score object
plotting method to use
minimum number of source cell type
minimum expression level for source cell type
minimum number of interacting neighbor cell type
minimum expression level for interacting neighbor cell type
minimum adjusted p-value
minimum absolute spatial expression difference
minimum log2 fold-change
minimum z-score change
calculate z-scores over cell types or featuress
differential expression directions to keep
character. discrete colors to use. palette to use or named vector of colors
logical. show plot
logical. return ggplot object
logical. save the plot
list of saving parameters, see showSaveParameters
default save name for saving, don't change, change save_name in save_param
volcano, cell_barplot, cell-cell, cell_sankey, heatmap, or dotplot
g <- GiottoData::loadGiottoMini("visium")
#> 1. read Giotto object
#> 2. read Giotto feature information
#> 3. read Giotto spatial information
#> 3.1 read Giotto spatial shape information
#> cell_spatInfo_spatVector.shp
#> cell
#>
#> 3.2 read Giotto spatial centroid information
#> cell
#>
#> 3.3 read Giotto spatial overlap information
#> No overlaps were found, overlap loading will be
#> skipped
#>
#> 4. read Giotto image information
#> a giotto python environment was found
#> Using python path:
#> "/Users/yuanlab/Library/r-miniconda/envs/giotto_env/bin/pythonw"
icfObject <- findInteractionChangedFeats(g, cluster_column = "leiden_clus")
plotCellProximityFeats(gobject = g, icfObject = icfObject,
show_plot = TRUE, save_plot = FALSE, return_plot = FALSE)