Learn R Programming

gsdensity (version 0.1.2)

compute.cell.label: 4.2. binarize the label propagation probability in the cell population; result in a binarized vector of cells with 'nagative' and 'positive' labels; 'positive' means that the cells are relevant to the gene set

Description

4.2. binarize the label propagation probability in the cell population; result in a binarized vector of cells with 'nagative' and 'positive' labels; 'positive' means that the cells are relevant to the gene set

Usage

# S3 method for cell.label
compute(cell_vec)

Value

cell label of 'negative' or 'positive' for a given pathway

Arguments

cell_vec

output of 'run.rwr'

Examples

Run this code
# \donttest{
cells <- colnames(pbmc.mtx)
el <- gsdensity::compute.nn.edges(coembed = ce, nn.use = 300)
cv <- gsdensity::run.rwr(el = el,
                         gene_set = gene.set.list[["GOBP_B_CELL_ACTIVATION"]],
                         cells = cells)
cl <- compute.cell.label(cv)
# }

Run the code above in your browser using DataLab