Closed mtmorgan closed 4 years ago
Thanks Martin for reporting. You are right, mapIds()
should indeed return a character
same length of the input. And a warning if something is strange wouldn't hurt either.
Will fix that.
Fixed in version 2.10.1 - pushed to branch RELEASE_3_10:
ensdb <- AnnotationHub()[["AH75036"]]
mapIds(ensdb, "ENSG00000107562", "SYMBOL", "GENEID")
ENSG00000107562
NA
Warning message:
In .mapIds(x = x, keys = keys, column = column, keytype = keytype, :
Unable to map 1 of 1 requested IDs.
I'm tentatively closing this issue - feel free to re-open if needed @mtmorgan
This
was unexpected and it took a long time to realize that the
ensdb
is for mousebut the keys are from humans.
I was thinking first that
mapIds()
should have returned a named character vector equal to the length of the input, and perhaps that the invalid keys should have signaled a warning or error as in OrgDb