Closed utule closed 1 year ago
It is not easy to judge why this error happens since the function PRECAST() is a high-level function. You can try this function ICM.EM() in PRECAST package by taking out the components from PRECASTObj. For example:
3.If the above command still produce error, you can try using a more strict filtering rule. For example, set premin.spots=40; premin.features=40. Then rerun your original code and the above command.
set.seed(2022) PRECASTObj <- CreatePRECASTObject(bc2, project = "BC2", gene.number = 2000, selectGenesMethod = "SPARK-X", premin.spots = 40, premin.features = 40, postmin.spots = 1, postmin.features = 10)
Hope this can help you.
I will try your suggestions, thanks for your kind help!
Hello author! thanks for your great work.
I encountered an error while running the command
P_RECASTObj<- PRECAST (PRECASTObj, K=15): Error in idrsc2Cpp (XList, AdjList, Adjlist_car, hZ, ymat, Mu0List, Sigma0List,: inv_sympd(): matrix is singular or not positive define)
. Additionally, before this error occurred, a warning was issued:warning: solve(): system is singular;
I am not sure why this error occurred. Could you please provide some suggestions? Thank you very much!