The use of animals to test the toxicity of chemicals may one day become outdated thanks to a low-cost, high-speed algorithm.