DEP R-package run_app ("TMT") spits this error: "Error: 'imputeMethods' is not an exported object from 'namespace:MSnbase'".
1
0
Entering edit mode
Shajahan • 0
@18c0334d
Last seen 4 weeks ago
United Kingdom

I am trying to run the DEP analysis of TMTx10 data in shiny app

"run_app("TMT")"

and get the

"Error: 'imputeMethods' is not an exported object from 'namespace:MSnbase' "

I saw in another post on "run_app("LFQ")" this may be due to eror in the original code in the DEP package. It seems it is not fixed yet.

Is there a quick fix for this?

Thanks Shaj

DEP • 479 views
ADD COMMENT
0
Entering edit mode
@james-w-macdonald-5106
Last seen 2 days ago
United States

This is a bug that was reported on the issues page for DEP way back in 2021, and is apparently yet to be fixed. I would normally suggest providing a patch to the maintainer, but if the issues page on their GitHub is being ignored, a patch is likely to be ignored as well.

If you just want to get it to work, you can either clone the repo or just download the tar.gz file (see the Package Archives part of the landing page). If you download the tarball, you have to decompress it. If you then navigate to DEP/inst/shiny_apps/TMT/ and open app.R in your favorite text editor (or R IDE), you can look for this code block, and change MSnbase to MsCoreUtils.

menuItem("Imputation options",
                 radioButtons("imputation",
                              "Imputation type",
                              choices = c("man", MSnbase::imputeMethods())[1:9],  <---------------this part right here
                              selected = "MinProb"),
                 p(a("Detailed information link",

You can then install the package by starting R and using install.packages

install.packages(<path to DEP>, repos = NULL)

If you are on Windows, add source = TRUE to that call.

0
Entering edit mode

I just reached out to the maintainer as well to see if they are still maintaining the package and to fix the reported bug.

ADD REPLY
0
Entering edit mode

Thank you very much James. I corrected the code as you suggested and it fixed the eror.

Shajahan

ADD REPLY

Login before adding your answer.

Traffic: 485 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6