propagate_labels: Label propagation

View source: R/RcppExports.R

propagate_labelsR Documentation

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


kharchenkolab/sccore documentation built on Feb. 26, 2024, 12:41 a.m.