apcamargo / tspex

tspex: tissue-specificity calculator
https://tspex.lge.ibi.unicamp.br/
GNU General Public License v3.0
27 stars 9 forks source link

Speed of tspex #12

Open morriso1 opened 2 years ago

morriso1 commented 2 years ago

Hi, I've been finding tspex super useful for my work and really user friendly. Reading through the source code, I noticed that some of the specificity functions are written in a way that makes than slower than they could be. I had a go at rewriting a few functions and managed to get ~500x speed up testing_ts_funcs.pdf. At the moment, I have implemented them in a python package (https://github.com/morriso1/tspecscores), since I needed to easily access them for my own work.

Would you be interested in a pull request with these faster implementations?

apcamargo commented 2 years ago

Hi @morriso1 Thanks for your effort! I'm very interested in a PR :)

morriso1 commented 2 years ago

Sounds good! I'll start working on a PR then.