Teichlab / SpatialDE

Test genes for Spatial Variation
MIT License
149 stars 56 forks source link

Potential redundancy in computation of `ln_P_mu` function #23

Open marmarmarmar opened 3 years ago

marmarmarmar commented 3 years ago

I am curious whether this computation:

https://github.com/Teichlab/SpatialDE/blob/87b908ba30d5981fb825f831cafc30cdeef5060e/Python-module/SpatialDE/aeh.py#L75

might be performed once and taken out of the loop. It does not seem to differ between different loop calls - so one may compute it once and save the computational time.