-
Notifications
You must be signed in to change notification settings - Fork 2
Unable to run tutorial with 3 bases with esophageal and simulated data #2
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
Comments
@jennprk, sorry about the delayed response. For the simulated data, we can only read it in with 5 bases since it is saved as the .rdata data format.
For the esophageal data, I am still trying to debug the problem by reproducing the example. Somehow, my new computer got stuck at the loading step.
|
No worries ! And thank you for helping me out. Actually, I aggregated the counts and features so that I can apply 3-base from your original simuated data. (you can find how I did here: https://gist.github.com/jennprk/595b68be98d75aec88c1011249f93418) And for the esophageal data, it also took me an hour (or even more) to get the error, so I believe it might take a while for you as well. |
@jennprk I have pushed a change to fix this issue. |
@zhiiiyang Hi Zhi, I am so sorry for such a late response! And thank you for updating the package. I've been reattempting the code, and it's still not working on my end. Would it be possible to get your code on how you generated the inputG? [Update]
|
@jennprk, please see the following code to generate the inputG
Also, to reply to your questions.
|
@zhiiiyang Thank you so much for sharing the codes! And I'll try increasing the iterations for the convergence :-) As for my previous last question, it actually does not need to be in COSMIC format. Is there any way to extract the signatures? My guess is to use the estimated posteriors for pStates1 and pStates2 but I was not sure. Please let me know if there's any way to extract them! :) |
@jennprk, sorry about the late reply. Yes, you can extract them by using the code from the plotting function. https://github.com/USCbiostats/HiLDA/blob/master/R/hilda_plot.R#L19-L83 |
@zhiiiyang No worries! Thank you so much for directing me to the code :) |
Hello Zhi,
I am trying to run the HiLDA tutorial provided with 3 flanking bases instead of 5 bases on your simulated data and esophageal data. This is the code that I ran (for the simulated data, I aggregated the 5-base counts and features to 3-base):
# HiLDA simulated data
set.seed(123)
## Run hildaTest with 3-base (aggregated simulated data)
hildaGlobal <- hildaTest(inputG=newG, numSig=3, localTest=FALSE, refGroup=1:4, nIter=1000)
# Espohageal data
inputFile <- system.file("extdata/esophageal.mp.txt.gz", package="HiLDA")
G <- hildaReadMPFile(inputFile, numBases=3, trDir=TRUE)
hildaGlobal <- hildaTest(inputG=G, numSig=4, localTest=FALSE, refGroup=1:60, nIter=1000)
Both running these codes gives me errors while running JAGS:
Error in update.jags(object, n.iter, ...) : Error in node sCat1[4,76] Cannot normalize density
Error in update.jags(object, n.iter, ...) : Error in node sCat1[60,187] Cannot normalize density
Would you have any suggestions as to what might be going wrong here?
Best,
Ji-Eun
The text was updated successfully, but these errors were encountered: