run_correlation: Compute and plot correlations between two datasets

View source: R/utils.R

run_correlationR Documentation

Compute and plot correlations between two datasets

Description

This function can compute the correlations on the samples from two count matrix. It will use Pearson method as default.

Usage

run_correlation(
  data1,
  data2,
  ngenes = 2000,
  method.use = "pearson",
  color.use = NULL
)

Arguments

data1

The first data frame with genes in rows and samples in columns

data2

The second data frame with genes in rows and samples in columns

ngenes

Number of top variable genes used for the computation

method.use

Default is "pearson". Other methods include kendall" or "spearman". See ?cor.

color.use

Color palette for the heatmap plot.

Value

A heatmap plot


HaojiaWu/plot1cell documentation built on Nov. 13, 2023, 9:20 a.m.