saezlab / progeny-py

PROGENY Python implementation
MIT License
12 stars 3 forks source link

Use sparse matrix instead of DataFrame #2

Closed grst closed 3 years ago

grst commented 3 years ago

Stay sparse as long as possible (in particular until subsetting the model genes). This is a lot more efficient than constructing a dense DataFrame at the beginning.

PauBadiaM commented 3 years ago

Thanks for the suggestion @grst! I had implemented the use of sparse matrix in dorothea but forgot to change it too in progeny.