showallcomp: Retrieve all the comparison names from the experiment table

View source: R/utils.R

showallcompR Documentation

Retrieve all the comparison names from the experiment table

Description

The 'showallcomp' function build the string of all comparisons possible using the condition column of a provided experiment table.

Usage

showallcomp(expdf, verbose = FALSE)

Arguments

expdf

A data frame containing experiment data that should have columns named 'condition', 'replicate', 'strand', and 'path'.

verbose

A logical flag indicating whether to print progress messages. Defaults to FALSE.

Value

If less than three conditions, nothing. Otherwise a character vector of all comparisons.

Examples

# Create a valid experiment table
exptab <- data.frame(
  condition = c("cond1", "cond2", "cond3"),
  replicate = c(1, 1, 1),
  direction = c("forward", "reverse", "forward"),
  strand = c("plus", "minus", "plus"),
  path = c("toto/", "toto/", "toto/"))
checkexptab(exptab)
showallcomp(exptab)


tepr documentation built on June 8, 2025, 10:46 a.m.