Description Usage Arguments Details Value
View source: R/flood.R View source: R/flood.R
Calculate likelihood that each cluster is a potential tip.
1 2 3 4 5 6 | clusterTipPotential(
object,
pseudotime,
clustering,
name.store = "tip.potential"
)
|
object |
An URD object |
pseudotime |
(Character) Pseudotime to use (i.e. a column of |
clustering |
(Character) Clustering to use (i.e. a column of |
name.store |
(Character) Name to store this tip potential calculation under (a column of |
This assumes that clusters that are tips will be primarily connected to cells with younger pseudotime. Thus, this function calculates the pseudotime difference between each cell in the data and mean pseudotime of each cluster. Then, the pseudotime differences are averaged To do this, the cumulative transition probability from all cells in the cluster to all cells outside of the clusters is calculated. Then, the pseudotime difference between each cell and the mean of the cluster is calculated, and a weighted average is performed according to the cumulative transition probability.
An URD object with a column in @pseudotime
named according to name.store
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.