InterMineR icon indicating copy to clipboard operation
InterMineR copied to clipboard

doEnirchment error after upgrade of R and biocondcutor

Open biojiangke opened this issue 4 years ago • 2 comments

Running the example in the tutorial (https://rdrr.io/bioc/InterMineR/f/vignettes/Enrichment_Analysis_and_Visualization.Rmd) does not work any more after upgrading bioconductor to 3.13. It throws out the following error:

Error in (function (classes, fdef, mtable)  : 
  unable to find an inherited method for function ‘doEnrichment’ for signature ‘"missing"’

Could be some dependency issues but could not find much information on this message.

biojiangke avatar Oct 22 '21 18:10 biojiangke

@biojiangke

Thanks for pointing this out.

I don't know why this has changed, but this seems to work:

Go_enrichResult <- doEnrichment( im.human, ids = hsa_gene_entrez, widget = "go_enrichment_for_gene"

)

(instead of im = im.human, just im.human)

rachellyne avatar Dec 09 '21 12:12 rachellyne

Thanks for the update! Changing "im=im.human" to "im.human" takes away the previous error, but now when I run doEnrichment I got:

Error in .local(object, ...) : Unauthorized (HTTP 401).

Does this mean the "im.human" object does not have proper authentication to access InterMine? Any advice?

The code before this chunk is this:

# load intermine instance for human genome
im.human = initInterMine(listMines()["HumanMine"])
# get all HumanMine widgets
human.widgets = as.data.frame(getWidgets(im.human))
human.widgets
# only gene related widgets
# get enrichment, gene-related widgets for HumanMine
subset(human.widgets, widgetType == 'enrichment' & targets == "Gene")

Checking results from the above lines, the "human.widgets" object seems to be fine. Using the example data "data("PL_DiabetesGenes")" in the documentation instead of my own gene list gave the same authorization error. Could this a problem on the InterMine side?

biojiangke avatar Dec 10 '21 22:12 biojiangke