Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doEnirchment error after upgrade of R and biocondcutor #80

Open
biojiangke opened this issue Oct 22, 2021 · 2 comments
Open

doEnirchment error after upgrade of R and biocondcutor #80

biojiangke opened this issue Oct 22, 2021 · 2 comments

Comments

@biojiangke
Copy link

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.

@rachellyne
Copy link
Member

rachellyne commented Dec 9, 2021

@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)

@biojiangke
Copy link
Author

biojiangke commented Dec 10, 2021

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants