Open
Description
In my analysis code, I have not-uncommon occurrences of:
library(AnnotationHub)
ens.mm.v97 <- AnnotationHub()[["AH73905"]]
anno <- select(ens.mm.v97, keys=rownames(se),
keytype="GENEID", columns=c("SYMBOL", "SEQNAME"))
rowData(se) <- anno[match(rownames(se), anno$GENEID),]
It would be nice to do something like:
anno <- select(ens.mm.v97, keys=rownames(se), multiVals="first",
keytype="GENEID", columns=c("SYMBOL", "SEQNAME"))
... and save myself an extra line of code (and improve robustness to changes to the annotation object). Sort of like how I get an integer vector if I ask for findOverlaps(..., select="first")
.
Metadata
Metadata
Assignees
Labels
No labels