Pretreatment process selection in a biofuel production line