Algorithms for sample preparation with microfluidic lab-on-chip. (2022)