Along these lines I have heard that there is a bacteriophage (virus that infects bacteria) that will substitute its own rhodopsin gene — which it has no use for in the absence of a host — for
the bacterial rhodopsin so that the bacterium will continue to produce energy even as its systems shut down due the the infection.