MIT researchers have engineered bacteria that can perform the basic switching functions of transistors.