PROBIC / mSWEEP

mSWEEP High-resolution sweep metagenomics using fast probabilistic inference
MIT License
13 stars 2 forks source link

Initialize pointers (fixes issue #37) #38

Closed jnalanko closed 3 days ago

jnalanko commented 3 days ago

Initialize sample and log_likelihoods in mSWEEP.cpp to fix a segmentation fault when running from precomputed log-likelihoods. Fixes issue #37.

tmaklin commented 3 days ago

Thanks -- it's fine to initialize the LL with int64_t here since there are no input alignments where adaptive integer width can save some gigabytes of RAM (the LL mat just has this as a template parameter to avoid type conversions).