View source: R/InferDMAPandRoot.R
InferDMAPandRoot | R Documentation |
This function constructs the diffusion map, Markov transition matrix and uses the provided potency estimates to infer the root-state and root-cell.
InferDMAPandRoot( pot.v, exp.m, avth=1, sdth=0.25, kDMAP = 30, pctop = 0.05 )
pot.v |
A vector of potency estimates for all cells, e.g. a vector of SR or CCAT values. |
exp.m |
The normalized and log-transformed scRNA-Seq data matrix |
avth |
The threshold on the average expression to use for selecting genes in the diffusion map. Default values is 1. |
sdth |
The threshold on the standard deviation to use for selecting genes in the diffusion map. Default value is 0.25. |
kDMAP |
An integer specifying the input argument to the diffusion map, representing the number of nearest neighbors to consider. By default this value is 30. |
pctop |
The proportion of top-ranked cells (with cells ranked by SR or CCAT) to consider when inferring teh root-state. By default this values is 0.05. |
A list with the following elements:
dmap |
The diffusion map object, as given by the 'destiny' package. |
dc |
The inferred diffusion map component matrix, with rows labeling cells and columns labeling ranked diffusion components. |
transM |
The Markov transition matrix associated with the inferred diffusion map. Rows and columns label cells. |
root |
The column index of the root-cell. |
color |
A color vector for the cells stratified according to potency |
Teschendorff AE, Tariq Enver. Single-cell entropy for accurate estimation of differentiation potency from a cell’s transcriptome. Nature communications 8 (2017): 15599. doi: 10.1038/ncomms15599.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.