A conformational switch in bacteriophage p22 portal protein primes genome injection.