The new technique could help scientists learn how the entire brain works to generate decisions and emotions.