## Not run:
# ## 2 bad IDs and a 3rd that will be valid
# ids <- c("15S_rRNA_2","21S_rRNA_4","15S_rRNA")
# isValidKey(ids, "org.Sc.sgd")
#
# ## 2 good IDs and a 3rd that will not be valid
# ids <- c("5600","7531", "altSymbol")
# isValidKey(ids, "org.Hs.eg")
#
# ## Get all the valid primary id from org.Hs.eg.db
# allValidKeys("org.Hs.eg")
# ## End(Not run)
Run the code above in your browser using DataLab