Combine multiple objects
Details
Combines the results from 2 separate DESeqAnalysis
objects. Note that the
internal DESeqDataSet
and DESeqTransform
objects slotted in x
and y
must be identical. The respective results must not contain any intersecting
names. The lfcShrink
slot is optional but must be either defined in both
objects or NULL
in both objects.
Examples
data(deseq)
## DESeqAnalysis ====
x <- deseq
y <- deseq
resultsNames(x) <- paste0("x_", resultsNames(x))
resultsNames(y) <- paste0("y_", resultsNames(y))
object <- combine(x, y)
#> ℹ Combining results into single DESeqAnalysis object.
#> x: [1] "x_condition_B_vs_A" "x_treatment_D_vs_C"
#> y: [1] "y_condition_B_vs_A" "y_treatment_D_vs_C"
resultsNames(object)
#> [1] "x_condition_B_vs_A" "x_treatment_D_vs_C" "y_condition_B_vs_A"
#> [4] "y_treatment_D_vs_C"