set_expt_factors: Change the factors (condition and batch) of an expt

View source: R/expt.R

set_expt_factorsR Documentation

Change the factors (condition and batch) of an expt

Description

When exploring differential analyses, it might be useful to play with the conditions/batches of the experiment. Use this to make that easier.

Usage

set_expt_factors(
  expt,
  condition = NULL,
  batch = NULL,
  ids = NULL,
  table = "metadata",
  class = "factor",
  columns = NULL,
  ...
)

Arguments

expt

Expt to modify

condition

New condition factor

batch

New batch factor

ids

Specific sample IDs to change.

table

When set to 'metadata', use pData, otherwise fData.

class

Set the data to this class by default.

columns

Change these columns.

...

Arguments passed along (likely colors)

Value

expt Send back the expt with some new metadata

See Also

[set_expt_conditions()] [set_expt_batches()]

Examples

## Not run: 
 expt = set_expt_factors(big_expt, condition = "column", batch = "another_column")

## End(Not run)

elsayed-lab/hpgltools documentation built on May 9, 2024, 5:02 a.m.