getSparkxGeneDf | R Documentation |
A wrapper around the algorithm introduced by Zhu et al. 2021 to identify features with non-random spatial expression pattern with SPARK-X.
getSparkxGeneDf(object, threshold_pval = 1, arrange_pval = TRUE)
getSparkxGenes(object, threshold_pval)
getSparkxResults(object, assay_name = activeAssay(object), error = TRUE, ...)
runSPARKX(
object,
assay_name = activeAssay(object),
numCores = 1,
option = "mixture",
verbose = NULL
)
object |
An object of class |
assay_name |
Only relevant if the |
error |
Logical. If |
... |
Used to absorb deprecated arguments or functions. |
verbose |
Logical. If (Warning messages will always be printed.) |
The updated input object, containing the added, removed or computed results.
Zhu, J., Sun, S. & Zhou, X. SPARK-X: non-parametric modeling enables scalable and robust detection of spatial expression patterns for large spatial transcriptomic studies. Genome Biol 22, 184 (2021). https://doi.org/10.1186/s13059-021-02404-0
library(SPATA2)
data("example_data")
object <- example_data$object_UKF313T_diet
object <- runSPARKX(object)
sparkx_genes <- getSparkxGenes(object, threshold = 0.05)
sparkx_df <- getSparkxGenesDf(object)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.