Closed kmegq closed 3 years ago
Hi Kate,
The plotting error has happened because sigfit automatically produces a goodness-of-fit plot after extracting a range of numbers of signatures. It looks like the plot was too big for your plotting environment - maybe you're on Rstudio, and the plot window is quite small? If so, making the window bigger should fix this. However, there's no good reason for extract_signatures
to fail with an error if the plot goes wrong, especially after spending a long time sampling, so I'll fix this in the next update.
The warnings are from the Stan library. The URL in the warning message explains it better than I can. In short, they are telling you that the MCMC sampler had some difficulty exploring the parameter space. Generally, seeing a few of these warnings when running sigfit
is nothing to worry about. A couple of things can help reduce the number of warnings, at the expense of longer run-times: adding an extra argument extract_signatures(..., control = list(adapt_delta = 0.99))
can help reduce divergent transitions, and increasing the number of iterations can help with the RHat warnings.
Best, Kevin
Thank you, Kevin!
The issue was that I am doing this work on our servers, which don't have a graphical interface. I was able to fix the problem by setting:
options(device=pdf)
As suggested in this Stackoverflow post.
Best, Kate
Ah, yes, that would fix it! Glad you got it working. Kevin
Hello, I am getting an error and some warnings when trying to run the second vignette:
My commands were:
After going through the iterations, I got the following:
Am I doing something wrong?
Thank you for your help!
Best, Kate