Combine multiple objects

combine(x, y, ...)

# S4 method for DESeqAnalysis,DESeqAnalysis
combine(x, y)

Arguments

x

Primary object.

y

Secondary object.

...

Additional arguments.

Value

Modified object.

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.

Note

Updated 2020-08-04.

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"