combine_expts: Take two expressionsets and smoosh them together.

View source: R/expt.R

combine_exptsR Documentation

Take two expressionsets and smoosh them together.

Description

Because of the extra sugar I added to expressionSets, the combine() function needs a little help when combining expts. Notably, the information from tximport needs some help.

Usage

combine_expts(
  expt1,
  expt2,
  condition = "condition",
  all_x = TRUE,
  all_y = TRUE,
  batch = "batch",
  merge_meta = TRUE
)

Arguments

expt1

First expt object.

expt2

Second expt object.

condition

Column with which to reset the conditions.

all_x

Keep all of the first expt's annotations/counts if there are mismatches?

all_y

Keep all the second expt's annotations/counts if there are mismatches?

batch

Column with which to reset the batches.

merge_meta

Merge the metadata when they mismatch? This should perhaps default to TRUE.

Value

Larger expt.

See Also

[set_expt_batches()] [set_expt_conditions()] [set_expt_colors()] [set_expt_genenames()] [set_expt_samplenames()] [subset_expt()] [create_expt()]

Examples

 ## Not run: 
  ## I am trying to get rid of all my dontrun sections, but I don't have two
  ## expressionsets to combine.
  expt1 <- create_expt(first_meta)
  expt2 <- create_expt(second_meta)
  combined <- combine_expts(expt1, expt2, merge_meta = TRUE)

## End(Not run)

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