Functional mapping for brain surgery door