Open sebschmi opened 2 years ago
I am a bit confused because changing this line: https://github.com/thegenemyers/HI.SIM/blob/d05807c0c941b0978b0edebaace41e91eda33dd6/HImodel.c#L993
to
err = (10000*err)/((plen-rep) == 0 ? 1 : (plen-rep))
seems to prevent the crash, even though all involved variables seem to be integers. However err
is converted to a float a few lines below, so maybe there is some optimisation causing this.
Thank you very much for creating HI.SIM. It works very well in most cases, but on one of my data sets, it crashes.
I get a floating point exception when using HImodel on a certain set of human hifi reads.
Below are the commands used to reproduce the error.