Peripheral nerve injury led to inferred microglia-driven inflammation and an ensemble transition with decreased recruitment of Gal+ inhibitory neurons and increased excitatory drive. Here, GAL is linked to peripheral nerve injury.