foldChange: Calculate Fold Change

View source: R/analysisFoldChange.R

foldChangeR Documentation

Calculate Fold Change

Description

Calculate Fold Change

Usage

foldChange(
  dataset = NULL,
  factor = NULL,
  ref_group = NULL,
  comparison_groups = NULL,
  ranks = NULL,
  allRanks = F,
  pairSamples = F
)

Arguments

dataset

MicroVis dataset. Defaults to active dataset

factor

Factor along which to conduct beta-diversity analysis

ref_group

Reference group for fold change computation. This will be the denominator. User will be asked if none is specified

comparison_groups

Comparison group for fold change computation. This will be the numerator. User will be asked if none is specified

ranks

Ranks at which to calculate fold change of features

allRanks

If set to TRUE, will compute feature fold change at all ranks. Defaults to FALSE

pairSamples

Should fold change be calculated on paired samples instead of between the means of groups? Defaults to FALSE. This option is useful when you have 2 or more time points from the same patient or something similar

Value

Table with the fold change and log2(fold change) for the features


microresearcher/MicroVis documentation built on Feb. 8, 2024, 10:59 a.m.