Skip to contents

This function projects probabilities calculated from a Markov chain onto each pseudobulk based on a diffusion distance matrix.

Usage

projectProbability(diffusionmap, waypoints, probabilities, t = 1)

Arguments

diffusionmap

diffusion map, used to reconstruct diffustion distance matrix

waypoints

Integer vector. Indices of the waypoints used in the Markov chain.

probabilities

Numeric vector. Probabilities associated with the waypoints, calculated from the Markov chain.

t

Numeric. The diffusion time to be used in the projection.

Value

each pseudobulk's probabilites