Inner loops run infinite time if their minCoeff does not get smaller than delta or maxCoeff greater than Delta.
https://github.com/deeptools/Knight-Ruiz-Matrix-balancing-algorithm/blob/master/src/krbalancing.cpp#L134
We need some mechanism to stop after a max number of iterations and or to check problematic matrices at initialization time.
In case the inner loop terminates, we should still return a value and not quit with exit(1) the depending software too. I need this especially in the context of single-cell Hi-C, the failure of one matrix should not influence the computation of the others by terminating the whole software.
Inner loops run infinite time if their
minCoeffdoes not get smaller thandeltaormaxCoeffgreater thanDelta.https://github.com/deeptools/Knight-Ruiz-Matrix-balancing-algorithm/blob/master/src/krbalancing.cpp#L134
We need some mechanism to stop after a max number of iterations and or to check problematic matrices at initialization time.
In case the inner loop terminates, we should still return a value and not quit with
exit(1)the depending software too. I need this especially in the context of single-cell Hi-C, the failure of one matrix should not influence the computation of the others by terminating the whole software.