frankligy / scTriangulate

scTriangulate is a Python package to mix-and-match conflicting clustering results in single cell analysis and generate reconciled clustering solutions
MIT License
35 stars 5 forks source link

Can't set the threads number #15

Closed michael-kotliar closed 2 years ago

michael-kotliar commented 2 years ago

The program either uses a single core or all of them. It would be nice to have a way to set the exact number of cpus to be used

frankligy commented 2 years ago

Sure thanks a lot for noticing it, currently I set the default cpu to the number of annotations (number of columns) because this is the most time-consuming step for computing stability metrics for each cluster annotation. (https://github.com/frankligy/scTriangulate/blob/main/sctriangulate/main_class.py#L802-L805), I will put it on my to-do list.

frankligy commented 2 years ago

It has been solved in commit (c8ed34689b084dd776d28734acddfa2d65fe4cc9)