modelSearch | R Documentation |
Compare model fits with different models, using the SpatialDE Python package.
modelSearch(x, de_results, ...)
## S4 method for signature 'matrix'
modelSearch(x, de_results, coordinates, qval_thresh = 0.05, verbose = FALSE)
## S4 method for signature 'SpatialExperiment'
modelSearch(
x,
de_results,
assay_type = "counts",
qval_thresh = 0.05,
verbose = FALSE
)
x |
A numeric Alternatively, a SpatialExperiment object. |
de_results |
|
... |
For the generic, arguments to pass to specific methods. |
coordinates |
A For the SpatialExperiment method, coordinates are taken from
|
qval_thresh |
|
verbose |
A |
assay_type |
A |
data.frame
of model_search results.
Davide Corso, Milan Malfait, Lambda Moses
Svensson, V., Teichmann, S. & Stegle, O. SpatialDE: identification of spatially variable genes. Nat Methods 15, 343–346 (2018). https://doi.org/10.1038/nmeth.4636
SpatialDE 1.1.3: the version of the Python package used under the hood.
The individual steps performed by this function: stabilize()
,
regress_out()
and model_search()
.
## Mock up a SpatialExperiment object wit 400 cells and 3 genes
set.seed(42)
spe <- mockSVG(size = 20, tot_genes = 3, de_genes = 1, return_SPE = TRUE)
## Run spatialDE with S4 integration
de_results <- spatialDE(spe)
## Run model search
model_search <- modelSearch(spe, de_results = de_results,
qval_thresh = NULL, verbose = FALSE
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.