ComputeWeight: Compute the weight for each gene to construct gene-gene...

View source: R/utilities.R

ComputeWeightR Documentation

Compute the weight for each gene to construct gene-gene correlation

Description

Compute the weight for each gene to construct gene-gene correlation

Usage

ComputeWeight(
  counts,
  normalization = TRUE,
  lib_size = NULL,
  method = "pearson"
)

Arguments

counts

Raw count data, each column is a cell and each row is a gene.

normalization

Bool variable to denote whether to do normalization before computing the weight, The default is TRUE.

lib_size

Read deepth for each cell, For default, summarize all read counts across whole genes.

method

The method to compute correlation matrix, pearson (default).

Value

Return the weight for each gene, p x 1 vector


xzhoulab/iDEA documentation built on Oct. 8, 2022, 8:54 a.m.