Discovery of a gene that helps plants control their response to disease could aid efforts to develop crops that are resistant to infection, research suggests.