Turning nerve cells on and off using pulses of light. Optogenetics is a relatively new field that uses light to control genetically modified cells. It is based on light-activated membrane proteins, such as bacteriorhodopsin or channelrhodopsin, that are built into nerve cells.