raphael-group / paste2

Probabilistic Alignment of Spatial Transcriptomics Experiments v.2
BSD 3-Clause "New" or "Revised" License
28 stars 2 forks source link

Automatic multi-threading of partial_pairwise_align #4

Open No2Ross opened 7 months ago

No2Ross commented 7 months ago

Hi there,

I've been running paste2 on my server and noticed it automatically uses all the cores on the server when running the partial_pairwise_align function. I looked at the function and can't seem to find a parameter which allows me to change that.

The problem is, i'm running it on quite a busy server and it's creating problems with other users. I was wondering if you plan to make the number of threads/cores parameterised soon?

Best wishes, Ross

x-h-liu commented 7 months ago

Hi Ross,

This is strange since I didn't write the code to be multi-threading and wasn't aware of any function call that uses multiple cores. I was wondering if it could be from the glmpca subroutine. If you do dissimilarity='pca' is it still using all the cores?

No2Ross commented 7 months ago

Hi there,

Thanks for responding.

Using the dissimilarity='pca' also makes it utilise all cores on the server.