Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

propagateLabelsDiffusion

Estimate labeling distribution for each vertex, based on provided labels using a Random Walk on graph


Description

Estimate labeling distribution for each vertex, based on provided labels using a Random Walk on graph

Usage

propagateLabelsDiffusion(
  graph,
  labels,
  max.iters = 100,
  diffusion.fading = 10,
  diffusion.fading.const = 0.1,
  tol = 0.025,
  fixed.initial.labels = TRUE,
  verbose = TRUE
)

Arguments

graph

igraph graph object Graph input

labels

vector of factor or character labels, named by cell names

max.iters

integer Maximal number of iterations (default=100)

diffusion.fading

numeric Constant used for diffusion on the graph, exp(-diffusion.fading * (edge_length + diffusion.fading.const)) (default=10.0)

diffusion.fading.const

numeric Another constant used for diffusion on the graph, exp(-diffusion.fading * (edge_length + diffusion.fading.const)) (default=0.1)

tol

numeric Absolute tolerance as a stopping criteria (default=0.025)

fixed.initial.labels

boolean Prohibit changes of initial labels during diffusion (default=TRUE)

verbose

boolean Verbose mode (default=TRUE)

Value

matrix from input graph, with labels propagated

Examples

propagateLabelsDiffusion(conosGraph, labels=cellAnnotations)

sccore

Core Utilities for Single-Cell RNA-Seq

v0.1.3
GPL-3
Authors
Viktor Petukhov [aut], Ramus Rydbirk [aut], Peter Kharchenko [aut], Evan Biederstedt [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.