Open adescoeudres opened 1 year ago
@gcyuan or @pacificma any suggestions?
Hi @adescoeudres ,
Thank you for reporting this issue! We are updating our HMRF function, and will not use python functions in the next version including the 'reader2.py' which caused issues in your example. The core algorithm of the new HMRF function will be the same as the previous one, but the layout will be somehow different. Currently we have named the new version as 'initHMRF_V2', and 'doHMRF_V2' in Giotto Master branch, and we plan to replace the current function with the new functions in the next update of Giotto version. For instruction of the new functions please check the example here https://bitbucket.org/qzhudfci/smfishhmrf-r/src/master/TRANSITION.md
Please let us know if you have any further questions.
hi @pacificma,
Thank you for looking into this. I have adapted my code to use the new functions, and this seems to have solved also some different problems I was experiencing.
However, with the function doHMRF_V2, I am now getting a new error in some cases, namely:
HMRF is stopping at large beta >= 0, numerical error occurs, results of smaller betas were stored Error in class(result.hmrf) <- append(class(result.hmrf), "HMRFoutput") : attempt to set an attribute on NULL
This is occurring regardless of the size of the betas (the function call in this case is res = doHMRF_V2(hmrf, betas = c(0,1,2))
). Is this a quick fix, or should I open a new issue?
Interestingly, the error only occurs in some of the samples for which I am trying to run Giotto.
Thanks in advance for your help.
Hi, I am trying to run the HMRF on some data for which I have the raw expression matrix and the spatial locations as .csv files. I am basically running the following:
However, from doHMRF(), I only get the following output and error:
What could be the issue here? I checked the blocks dictionary, and really only this key 2535 seems to be missing.
Thanks in advance for your help!