pachterlab / sleuth

Differential analysis of RNA-Seq
http://pachterlab.github.io/sleuth
GNU General Public License v3.0
305 stars 95 forks source link

loess uses all computer resources when doing shrinkage #223

Open warrenmcg opened 5 years ago

warrenmcg commented 5 years ago

It was discovered during testing that the loess function in the standard sleuth shrinkage estimation function (sleuth:::shrink_df) is set to use all available cores on the machine in the typical setup (OpenMP framework when installing R's internal Fortran and C++ code, no environment variables set). This is solved by setting the environment variable OMP_NUM_THREADS, but most users will not know to do this.

I would advocate for having a mechanism to change this behavior from within sleuth, but it may not be kosher to change environment variables within R. An alternative would be to just provide a warning to the user (though this would come up every time in a standard run).

Issue is set up as an FYI to put in some solution before the next release