add_logfc: Add log fold-change

View source: R/add_logfc.R

add_logfcR Documentation

Add log fold-change

Description

Compute log2(fold-change) based on the effect size.

Usage

add_logfc(results, effect_var = "estimate", force_new = FALSE)

Arguments

results

The cell type-phenotype enrichment results generated by gen_results and merged together with merge_results

effect_var

Name of the effect size column in the results.

force_new

Force the creation of a new logFC column even when one already exists.

Examples

results = load_example_results()[seq(5000)]
add_logfc(results)

neurogenomics/MultiEWCE documentation built on Sept. 28, 2024, 2:27 a.m.