scandal_cluster_markers_density: Compute cluster markers density

Description Usage Arguments Value Author(s)

View source: R/analysis-tools.R

Description

This function computes the expression density of a set of marker genes for each cluster. The expression density is defined as the mean expression of the markers gene set accross all cells belonging to the same cluster.

Usage

1
2
3
4
5
6
7
scandal_cluster_markers_density(
  x,
  clusters,
  mname,
  markers,
  return_sorted = FALSE
)

Arguments

x

gene expression matrix

clusters

a character/factor vector of cluster assigment for each observation (column) in x

markers

a character vector of marker gene symbols corresponding to subset of genes (rows) in x

return_sorted

wether the result should be returned in descending order. Defaule is FALSE

Value

A tibble with two columns: Cluster and MCD (Markers Cluster Density).

Author(s)

Avishay Spitzer


dravishays/scandal documentation built on Jan. 8, 2020, 1:30 p.m.