CalcDiffExprScaled: Check input and score and scale DE stats.

View source: R/BuildInx.R

CalcDiffExprScaledR Documentation

Check input and score and scale DE stats.

Description

This function takes differential expression gene statistics from scRNAseq data representing a cell type as a dataframe, and assigns scaled scores to the statistic of choice. This is used to rank nodes and edges by differential expression when viewing the bipartite ligand-receptor plots.

Usage

CalcDiffExprScaled(gdb, DEmagn, DEstat)

Arguments

gdb

A data frame representing gene statistics from a cell type, where each row is a gene with official gene symbols as row names. Variables should be appropriately named statistics or annotations to be included in the resulting node metadata.

DEmagn

A character vector of length 1 representing the variable name in the GeneStatList data frames carrying information on the magnitude and direction of the change of expression for the node (gene) in each cell type. This is generally a signed logFC or gene expression ratio.

DEstat

A character vector of length 1 representing the variable name in the GeneStatList data frames carrying information on the statistical significance of expression change. This is generally a corrected p-value.


BaderLab/CCInx documentation built on Jan. 31, 2023, 5:52 p.m.