createSpaTalk | R Documentation |
create SpaTalk object using spatial transcriptomics data.
createSpaTalk(
st_data,
st_meta,
species,
if_st_is_sc,
spot_max_cell,
celltype = NULL
)
st_data |
A data.frame or matrix or dgCMatrix containing counts of spatial transcriptomics, each column representing a spot or a cell, each row representing a gene. |
st_meta |
A data.frame containing coordinate of spatial transcriptomics with three columns, namely |
species |
A character meaning species of the spatial transcriptomics data. |
if_st_is_sc |
A logical meaning if it is single-cell spatial transcriptomics data. |
spot_max_cell |
A integer meaning max cell number for each plot to predict. If |
celltype |
A character containing the cell type of ST data. To skip the deconvolution step and directly infer cell-cell communication, please define the cell type. Default is |
SpaTalk object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.