Create visualization for combined (pairwise) ICF scores
plotCombineICF(
gobject,
combIcfObject,
selected_interactions = NULL,
selected_feat_to_feat = NULL,
detail_plot = TRUE,
simple_plot = FALSE,
simple_plot_facet = c("interaction", "feats"),
facet_scales = "fixed",
facet_ncol = length(selected_feat_to_feat),
facet_nrow = length(selected_interactions),
colors = c("#9932CC", "#FF8C00"),
show_plot = NULL,
return_plot = NULL,
save_plot = NULL,
save_param = list(),
default_save_name = "plotCombineICF"
)
giotto object
ICFscores, output from combineInteractionChangedFeats()
interactions to show
pairwise feature combinations to show
show detailed info in both interacting cell types
show a simplified plot
facet on interactions or feats with simple plot
ggplot facet scales paramter
ggplot facet ncol parameter
ggplot facet nrow parameter
vector with two colors to use
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
ggplot
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
#> 3.2 read Giotto spatial centroid information
#> 3.3 read Giotto spatial overlap information
#> 4. read Giotto image information
#> python already initialized in this session
#> active environment : '/usr/bin/python3'
#> python version : 3.10
#> checking default envname 'giotto_env'
#> a system default python environment was found
#> Using python path:
#> "/usr/bin/python3"
g_icf <- findInteractionChangedFeats(g,
cluster_column = "leiden_clus",
selected_feats = c("Gna12", "Ccnd2", "Btbd17"), nr_permutations = 10
)
#> Error: package 'future' is not yet installed
#>
#> To install:
#> install.packages(c("future"))
combIcfObject <- combineInteractionChangedFeats(g_icf)
#> Error: object 'g_icf' not found
plotCombineICF(
gobject = g, combIcfObject = combIcfObject,
selected_feat_to_feat = c("Btbd17--Ccnd2", "Btbd17--Gna12"),
selected_interactions = "1--8"
)
#> Error: object 'combIcfObject' not found