BIMSBbioinfo / scregseg

Single-cell regulatory landscape segmentation
GNU General Public License v3.0
5 stars 2 forks source link

Ensure input to _fast_dirmul_loglikeli_sp has compressed sparse row f… #5

Closed prauten closed 2 years ago

prauten commented 2 years ago

…ormat to avoid unexpected behavior of cython code.

Hi Wolfgang.

This pull request is meant to avoid unexpected behavior of _fast_dirmul_loglikeli_sp() that strictly requires compressed row formatted input data. I implemented a type check and "silent" conversion to csr format.

Best, Pia

wkopp commented 2 years ago

Thank you, Pia.