get_num_cell_per_spot | R Documentation |
This function takes a list object containing spatial transcriptomics matrix as input
and estimates the relative number of cells per spot in the data.
The number of cells is estimated as the library size scaled to
the range from 1 to 100.
This value stored in the number_cells
attribute.
get_num_cell_per_spot(alldata)
alldata |
A list object containing spatial transcriptomics |
a vector with the relative number of cells in each spot.
utils::data("example_scrnaseq" , package = "scFeatures")
data <- example_scrnaseq@assays$RNA@data
data <- list(data = data)
number_of_cells <- get_num_cell_per_spot(data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.