Open olivertam opened 3 years ago
After investigation, this appears to be due to the following call:
choices = as.character(paste0("NMF", sort(unique(nmf_groups()$nmf_subtypes))))
Which occurs on lines 1809, 1814, 1984 of server.r
nmf_groups()
can be found on line 698 of server.r
. The "Seems like you haven't run NMF 'real' run yet" error appears to be coming from the call on line 700 which is part of nmf_groups()
need(class(nmf_res()) == "NMFfitX1", "Seems like you haven't run NMF 'real' run yet")
My guess is the current version of NMF is no longer returning an NMFfitX1
class, causing nmf_groups
to fail. My current recommendation is to try downgrading the version of NMF to either 0.22.0 or 0.23.0 (not tested), both of which can be found on CRAN.
Hi,
The same error is still present, even with NMF version 0.22.0:
Compute NMF rank= 2 ... + measures ... OK
Compute NMF rank= 3 ... + measures ... OK
Compute NMF rank= 4 ... + measures ... OK
Compute NMF rank= 5 ... + measures ... OK
Compute NMF rank= 6 ... + measures ... OK
Compute NMF rank= 7 ... + measures ... OK
[1] "### Time to run NMF ###"
user system elapsed
1703.171 74.646 414.704
Warning: Error in h: error in evaluating the argument 'x' in selecting a method for function 'sort': error in evaluating the argument 'x' in selecting a method for function 'unique': Seems like you haven't run NMF 'real' run yet
79: <Anonymous>
Warning: Error in h: error in evaluating the argument 'x' in selecting a method for function 'sort': error in evaluating the argument 'x' in selecting a method for function 'unique': Seems like you haven't run NMF 'real' run yet
79: <Anonymous>
> installed.packages()["NMF", "Version"]
[1]. "0.22.0"
Thanks.
Hey Oliver,
After thinking about this some more, I think my initial assumption that the problem was with the NMF package is wrong.
My current hunch is that the DESeq2 tab is being called immediately after NMF estimation is done running. The DESeq2 tab expects an NMFfitX1
class, which is only generated after a real
NMF run (the estimation run generates anNMF.rank
class). I believe this mismatch is what is causing the error. Normally, the DESeq2 tab shouldn't be activated until it is clicked on, which makes me suspect that an update/change in the newer versions of shiny
and associated packages may be causing this change in behaviour.
It's a long shot, but a potential fix may be downgrading to the package versions I have in my currently working R3.6 installation:
shiny 1.4.0.2
shinydashboard 0.7.1
shinythemes 1.1.2
It's also possible, but unlikely, that the change occurred in sake itself. Downgrading sake may also help.
devtools::install_github("naikai/sake", ref="2d5a5cfe9e7d97b569a537f816dd5b8187a0fb8e")
devtools::install_github("naikai/sake", ref=”1f13232a31e5d99874e765fd358ee96061be6ae0”)
This will downgrade to this commit which closely matches the version I currently have working on R3.6.
Edit: Updated post to use a commit/version of SAKE without an install bug.
Updated previous comment to use a version of sake without the install bug. The devtools::install_github()
command should work now.
I also encounter the exact same error message. @ColeWunderlich, I tried your suggestion and downgraded to R3.6.0 along with
shiny 1.4.0.2
shinydashboard 0.7.1
shinythemes 1.1.2
but the error remained. Any ideas what might be happening? Could you maybe post your full sessionInfo
?
Hi,
We have encountered an error when processing the Ting et al. dataset through SAKE. Here are the parameters that we used:
When we run SAKE, it would crash after the estimation of
k
step.Error message:
Traceback:
SessionInfo:
Thanks for all your help.