Hi Matt and Nadia,
For almost a year, I was using goseq as a generalized enrichment tool (leveraging the gene length bias correction implemented there, thank you) using my custom gene sets this way:
goseq(myData, genome=NULL, id=NULL, gene2cat = MyVeryOwnGeneCategorization, method="Sampling", repcnt = 100000)
After recent update to version 1.18.0, the pipeline crashed and returned this:
################################
Error in .testForValidKeys(x, keys, keytype) :
None of the keys entered are valid keys for 'GOID'. Please use the keys method to see a listing of valid arguments.
################################
It looks like the current version became explicitly restricted to use of the pre-defined geneset categories (I see "test.cats" argument that defaults to c("GO:CC", "GO:BP", "GO:MF") in the manual and when I looked at the code itself, it seems to accept "KEGG" as well and return an error in any other case).
This restriction dramatically narrows the applicability of goseq. Could this be changed in the upcoming version?
Thank you,
Oleg
P.S. I happened to still have an older Bioconductor version on one workstation, and exactly the same pipeline runs without any issues there (goseq_1.16.2).