The combine generic function handles methods for combining or merging different Bioconductor data structures. It should, given an arbitrary number of arguments of the same class (possibly by inheritance), combine them into a single instance in a sensible way (some methods may only combine 2 objects, ignoring ... in the argument list; because Bioconductor data structures are complicated, check carefully that combine does as you intend).

combine(x, y, ...)

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

Arguments

x, y

Object.

...

Additional arguments.

Value

A single value of the same class as the most specific common ancestor (in class terms) of the input values. This will contain the appropriate combination of the data in the input values.

Details

There are two basic combine strategies. One is an intersection strategy. The returned value should only have rows (or columns) that are found in all input data objects. The union strategy says that the return value will have all rows (or columns) found in any one of the input data objects (in which case some indication of what to use for missing values will need to be provided).

These functions and methods are currently under construction. Please let us know if there are features that you require.

Note

Updated 2019-08-28.

See also

Examples

data(gsea) x <- gsea contrastNames(x) <- paste0("x_", contrastNames(x)) y <- gsea contrastNames(y) <- paste0("y_", contrastNames(y)) c <- combine(x, y) c
#> FGSEAList 0.0.5 of length 1 #> collectionNames: h #> contrastNames(2): x_dmso_r1881_vs_etoh y_dmso_r1881_vs_etoh