nel-lab / mesmerize-core

High level pandas-based API for batch analysis of Calcium Imaging data using CaImAn
Other
58 stars 15 forks source link

How to adjust n_processes in mescore #269

Closed zhouyi0812 closed 6 months ago

zhouyi0812 commented 7 months ago

Hello! I wonder if I could change the n_processes in mescore? And what is the disadvantage if I reduce the n_processes for higher speed? Also, if I have a general pnr and corr, if it is possible that I could set the number in parameters rather than adjust each time? Thank you!

When you use algo="cnmfe", it basically forces the following parameters:

"method_init": "corr_pnr", "n_processes": n_processes, "only_init": True, # for 1p "center_psf": True, # for 1p "normalize_init": False, # for 1p

kushalkolar commented 7 months ago

Hello! I wonder if I could change the n_processes in mescore? And what is the disadvantage if I reduce the n_processes for higher speed?

https://github.com/nel-lab/mesmerize-core/issues/205#issuecomment-1574585472

Also, if I have a general pnr and corr, if it is possible that I could set the number in parameters rather than adjust each time? Thank you!

Yes