View source: R/gsdensity_functions.R
compute.cell.label | R Documentation |
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
## S3 method for class 'cell.label'
compute(cell_vec)
cell_vec |
output of 'run.rwr' |
cell label of 'negative' or 'positive' for a given pathway
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.