propagateLabels: Estimate labeling distribution for each vertex, based on...

propagateLabelsR Documentation

Estimate labeling distribution for each vertex, based on provided labels.

Description

Estimate labeling distribution for each vertex, based on provided labels.

Usage

propagateLabels(graph, labels, method = "diffusion", ...)

Arguments

graph

igraph graph object

labels

vector of factor or character labels, named by cell names, used in propagateLabelsSolver() and propagateLabelsDiffusion()

method

string Type of propagation. Either 'diffusion' or 'solver'. (default='diffusion') 'solver' gives better result but has bad asymptotics, so it is inappropriate for datasets > 20k cells.

...

additional arguments passed to either propagateLabelsSolver() or propagateLabelsDiffusion()

Value

matrix with distribution of label probabilities for each vertex by rows.

Examples

propagateLabels(conosGraph, labels=cellAnnotations)


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