MannLabs / alphadia

modular & open DIA search
https://alphadia.readthedocs.io
Apache License 2.0
41 stars 3 forks source link

Use batch index at optimum #329

Closed odespard closed 3 weeks ago

odespard commented 3 weeks ago

At present, if the optimization proceeds beyond the optimum, it may cause an increase in the batch index. The next round will then start from the higher batch instead of the batch index of the optimum. This code changes it to take the batch index of the optimum, at the cost of potentially getting the batch library twice if these are the same. (But the time impact of this is negligible and the benefits can be significant.)