pySCENIC icon indicating copy to clipboard operation
pySCENIC copied to clipboard

[results] Is there a way to control the parallel computing in python script instead of CLI version?

Open pekjoonwu opened this issue 4 years ago • 2 comments

Hey,

I am wondering if there is a way to specify the core for the python function when running the function. I checked the arboreto package but it seems like there is no such a variable. If we use CLI, we an specify --num_workers but there is no equivalent way in python? Please let me know if I miss something.

Thanks!

pekjoonwu avatar Jun 19 '21 17:06 pekjoonwu

Not the maintainer, but it's not clear what you are asking. Perhaps you can provide a more detailed description of what you are trying to do and provide code/commands.

jpcartailler avatar Jun 30 '21 13:06 jpcartailler

Most functions accept a num_workers argument:

https://github.com/aertslab/pySCENIC/search?q=num_workers

https://github.com/aertslab/pySCENIC/blob/25a8211f900f73c8b0aacc717f7dc6d8419f95f5/src/pyscenic/cli/arboreto_with_multiprocessing.py#L146-L152

ghuls avatar Dec 02 '21 12:12 ghuls