runPatternSimulation
¶
runPatternSimulation
Description¶
Creates a known spatial pattern for selected genes one-by-one and runs the different spatial gene detection tests
Usage¶
runPatternSimulation(
gobject,
pattern_name = "pattern",
pattern_colors = c(`in` = "green", out = "red"),
pattern_cell_ids = NULL,
gene_names = NULL,
spatial_probs = c(0.5, 1),
reps = 2,
spatial_network_name = "kNN_network",
spat_methods = c("binSpect_single", "binSpect_multi", "spatialDE", "spark",
"silhouetteRank"),
spat_methods_params = list(NA, NA, NA, NA, NA),
spat_methods_names = c("binSpect_single", "binSpect_multi", "spatialDE", "spark",
"silhouetteRank"),
scalefactor = 6000,
save_plot = T,
save_raw = T,
save_norm = T,
save_dir = "~",
max_col = 4,
height = 7,
width = 7,
run_simulations = TRUE,
...
)
Arguments¶
Argument |
Description |
---|---|
|
giotto object |
|
name of spatial pattern |
|
2 color vector for the spatial pattern |
|
cell ids that make up the spatial pattern |
|
selected genes |
|
probabilities to test for a high expressing gene value to be part of the spatial pattern |
|
number of random simulation repetitions |
|
which spatial network to use for binSpectSingle |
|
vector of spatial methods to test |
|
list of parameters list for each element in the vector of spatial methods to test |
|
name for each element in the vector of spatial elements to test |
|
library size scaling factor when re-normalizing dataset |
|
save intermediate random simulation plots or not |
|
save the raw expression matrix of the simulation |
|
save the normalized expression matrix of the simulation |
|
directory to save results to |
|
maximum number of columns for final plots |
|
height of final plots |
|
width of final plots |
|
run simulations (default = TRUE) |
|
additional parameters for renormalization |
Value¶
data.table with results