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,
... in the argument list; because Bioconductor
data structures are complicated, check carefully that
does as you intend).
combine(x, y, ...) # S4 method for FGSEAList,FGSEAList combine(x, y)
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.
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.
and combine,eSet,eSet-method in the Biobase
package for additional
merge for merging two data frames (or data-frame-like)
showMethods for displaying a summary of the
methods defined for a given generic function.
selectMethod for getting the definition of
a specific method.
BiocGenerics for a summary of all the generics defined in the BiocGenerics package.
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