mv_interactions: most variable interactions

Description Usage Arguments Value Examples

View source: R/mv_interactions.R

Description

Displays a heatmap showing the most variable interactions over all clusters.

Usage

1
2
3
4
5
6
7
8
mv_interactions(
  data,
  genes,
  cluster,
  c.names = NULL,
  n = 30,
  species = c("homo sapiens", "mus musculus")
)

Arguments

data

a data frame of n rows (genes) and m columns (cells) of read or UMI counts (note : rownames(data)=genes)

genes

a character vector of HUGO official gene symbols of length n

cluster

a numeric vector of length m

c.names

(optional) cluster names

n

an integer the number of most variables interactions

species

"homo sapiens" or "mus musculus"

Value

The function displays a heatmap showing the most variable interactions over all clusters

Examples

1
2
3
4
data <- matrix(runif(1000,0,1),nrow=5,ncol=200)
genes <- c("gene 1","gene 2","gene 3","gene 4","gene 5")
cluster <- c(rep(1,100),rep(2,100))
mv_interactions(data,genes,cluster)

SingleCellSignalR documentation built on Nov. 8, 2020, 5:17 p.m.