-
Notifications
You must be signed in to change notification settings - Fork 119
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
Parallelization error when optimizing parameters for NicheNet #292
Comments
Hi, From NicheNet v2 onwards we started using nsga2R optimization instead of mlrMBO, as it is much faster. Unfortunately this means I am not able to help you with this particular issue, as the code in question is 5+ years old at this point, and it seems the parallelMap package we used for parallelization has been deprecated for 4 years now. I would recommend you to switch to the nsga2r functions we have...but the optimization would still take multiple days to run, so I'm not sure it will be feasible on a personal computer. Thanks for trying out the optimization though, it's the first issue we've gotten about this 😄 It's probably going to be very tricky to make it run on a different system, so let me know if you run into more problems. Best regards, |
Hi @csangara, just a clarification. I was going to run the optimization steps on a desktop computer with 64 GB RAM. In the tutorial, I see that you used a HPC which ran for a few days. Unfortunately, I do not have that possibility. So I was wondering how critical this step really is (even using nsga2) for running NicheNet with an updated set of ligand-receptor pairs from the Omnipath database. In other words, could I use the merged ligand-target pairs from Omnipath & NicheNet without the optimization steps? Thanks in advance, |
Hi Theo, The optimization step can slightly improve the performance of NicheNet target gene prediction but I would not say it is very critical (see Supplementary Notes Figure 2.3 and 2.4 in the MultiNicheNet paper). So you can definitely use updated LR pairs from Omnipath without optimization. However, when reconstructing the ligand-target matrix, I would recommend taking a similar weight as the original Omnipath LR data source (named "omnipath" with score of ~0.16, see also Supplementary Table 1B,E). |
Thank you @csangara, last question! I understand the purpose of giving weights to different databases, e.g. Omnipath. When I combine NicheNet and Omnipath, I have > 1,000 sources, some of which are in the Table you referred me to. However, I was thinking that if I give special weights to only those sources (about 60 in number), I might be biasing my downstream predictions. What do you think? Would you still recommend weighting a few databases or keep the same default weight (i.e. 1) in all of them? |
Hi,
I am implementing the Omnipath resources for NicheNet analysis on a Windows computer. I was optimizing the parameters for the model as shown below:
However, I have an error:
I understand that the issue is the Windows OS which can not use several cores to process functions but I have not found a workaround with parallelStart(mode='socket', cpus=5) with no success. I would appreciate any support!
The text was updated successfully, but these errors were encountered: