A measurement of electron neutrino appearance with the MINOS experiment