Researchers have developed a computational method that could be used to guide surgeons during brain surgery.