mv_interactions: most variable interactions

View source: R/mv_interactions.R

mv_interactionsR Documentation

most variable interactions

Description

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

Usage

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

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)

SCA-IRCM/SingleCellSignalR documentation built on Dec. 11, 2022, 2:30 p.m.