intra_correlation_scExp: Calculate intra correlation between cluster or samples

View source: R/correlation_filtering_clustering.R

intra_correlation_scExpR Documentation

Calculate intra correlation between cluster or samples

Description

Calculate intra correlation between cluster or samples

Usage

intra_correlation_scExp(
  scExp_cf,
  by = c("sample_id", "cell_cluster")[1],
  fullCor = TRUE
)

Arguments

scExp_cf

A SingleCellExperiment

by

On which feature to calculate correlation ("sample_id" or "cell_cluster")

fullCor

Logical specifying if the correlation matrix was run on the entire number of cells or on a subset.

Value

A data.frame of cell average intra-correlation

Examples

data(scExp)
intra_correlation_scExp(scExp, by = "sample_id")
intra_correlation_scExp(scExp, by = "cell_cluster")

vallotlab/ChromSCape documentation built on Oct. 15, 2023, 1:47 p.m.