An automatic optimisation framework for bioinformatics