SRTsim_estimation | R Documentation |
This function is used to estimate useful parameters from a real dataset by
using srtsim_fit
function in SRTsim package.
SRTsim_estimation(ref_data, verbose = FALSE, other_prior = NULL, seed)
ref_data |
A count matrix. Each row represents a gene and each column represents a cell/spot. |
verbose |
Logical. |
other_prior |
A list with names of certain parameters. Some methods need
extra parameters to execute the estimation step, so you should input them.
See |
seed |
An integer of a random seed. |
In SRTsim, users should input the spatial coordinates of spots or cells in the spatial transcriptome data.
spatial.x. The x-axis coordinates.
spatial.y. The y-axis coordinates.
group.condition. Users can also input a numeric vector to specify the tissues or domains that each cell/spot comes from,
like other_prior = list(group.condition = the numeric vector)
.
sim_scheme. If the labels of cells/spots represents the tissue layers or slices, sim_scheme
should be set as tissue
.
sim_scheme
is set as domain
by default.
A list contains the estimated parameters and the results of execution detection.
Zhu J, Shang L, Zhou X. SRTsim: spatial pattern preserving simulations for spatially resolved transcriptomics. Genome Biology, 2023, 24(1): 39. https://doi.org/10.1186/s13059-023-02879-z
URL: https://cran.r-project.org/web/packages/SRTsim/index.html
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.