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

propagate_labels

Label propagation


Description

Label propagation

Usage

propagate_labels(
  edge_verts,
  edge_weights,
  vert_labels,
  max_n_iters = 10L,
  verbose = TRUE,
  diffusion_fading = 10,
  diffusion_fading_const = 0.5,
  tol = 0.005,
  fixed_initial_labels = FALSE
)

Arguments

edge_verts

edge vertices of igraph graph object

edge_weights

edge weights of igraph graph object

vert_labels

vector of factor or character labels, named by cell names

max_n_iters

integer Maximal number of iterations (default=10)

verbose

boolean Verbose mode (default=TRUE)

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.5)

tol

numeric Absolute tolerance as a stopping criteria (default=5e-3)

fixed_initial_labels

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

Value

matrix from input graph, with labels propagated


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.