By genetic manipulation, Bargmann and her team swapped the receptors for two different odorants between two neurons, and produced opposite effects to those that normally occur — a receptor for an attractive odor, now on a neuron that usually responded to noxious odors, caused worms to move away from
the attractive odor source.