Description Usage Arguments Value
With the probabilistic assignment of cells to locations from optimal transport, we can predict gene expression at each location based on the gene count matrix. Let X denote the gene count matrix with genes in rows and cells in columns, and T denote the probabilistic assignment of cells to locations, with cells in rows and locations in columns. Gene expression at each location can be predicted by XT. This function will use this to predict gene expression. It will also scale the prediction so the mean gene expression across locations will match the mean gene expression among cells in scRNA-seq.
1 | predict_expr_loc(X, cell_loc, transposed = FALSE, scale = TRUE)
|
X |
Numeric matrix (can be sparse) with genes in rows and cells in
columns. If genes are in columns, then set |
cell_loc |
Matrix that probabistically assigns cells to locations, made
from the function |
transposed |
Logical, whether the matrix has cells in rows rather than
in columns. Defaults to |
scale |
Logical, whether predictions should be scaled so their means are
the same as in single cell RNA-seq data supplied in |
A numeric matrix with genes in rows and locations in columns.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.