add annotation mapping for SummarizedExperiment and subclasses #194
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds annotation mapping for
SummarizedExperiment
data containers and its subclassesSingleCellExperiment
andSpatialExperiment
.This will work if gene sets are stored in a
GeneSetCollection
withgeneIdType
set to a valid value e.g. by importing them usingGSEABase::getGmt()
orGSVA::readGMT()
. The container classes above need angeneIdType
with anOrgDb
as itsannotation()
set as theannotation
element of theirmetadata
, e.g.and any gene set IDs supported by
org.Hs.eg.db
will be automatically converted to ENSEMBL IDs.Annotation mapping for
Biobase::ExpressionSet
containers has been verified to continue working whereannotation(ES)
is not ageneIdType
but only a character containing the name of the annotation database package.Annotation mapping for simpler container types such as
matrix
ordgCMatrix
or with gene sets stored in lists is not supported.For performing/testing annotation mapping, it is sufficient to call
geneSets(par)
on a valid parameter object as described above, without running a complete gene set analysis.