Bacterial edge detection. (A) Light is projected through a mask onto a large community (lawn) of bacteria grown on a Petri dish. The lawn computes the edges, or boundaries between light and dark regions, and visually presents the output. (B) To find the edges, bacteria in the dark produce a communication signal (green circles) that diffuses across the dark/light boundary. Bacteria in the dark cannot respond to the communication signal. Only bacteria that are exposed to light and receive the signal become positive for the expression of a visible reporter gene. The sum of this activity over the entire two-dimensional population is equivalent to the edges of the input image. (C) (Top) A NOT light gate (lightning box + adjacent triangle) drives a cell-cell communication circuit (green X) and an inverter (red Y + adjacent triangle). These two signals combine as inputs for a downstream AND gate (semi-circle) which drives the final output (Z). Because signal is inverted at Y, the gate driving Z can also be described as an X AND (NOT Y) gate, and it is referred to as such throughout this work. (Bottom) Z is produced in only one of four possible combinations of X and Y (presence of X, absence of Y). (D) Conversion of the edge detection algorithm into a molecular genetic system. (Left) The light-sensitive protein Cph8 is a chimeric sensor kinase bearing the photoreceptor domain of the Synechocystis phytochrome Cph1 and the kinase domain of E.coli EnvZ (Levskaya et al., 2005). Cph8 requires the covalently associated chromophore phycocyanobilin (PCB, blue pentagons) which is produced from heme by the products of the two constitutively expressed genes ho1 and pcyA (Gambetta and Lagarias, 2001). In the presence of red light, the kinase activity of Cph8 is inhibited, precluding the transfer of a phosphoryl group (light green circle) to the response regulator OmpR (orange dumbbell) and subsequent transcription from the ompC promoter (PompC). The dark sensor therefore functions as a NOT light transcriptional logic gate. (Center) luxI and cI are expressed polycistronically from the NOT light gate. LuxI is a biosynthetic enzyme from V.fischeri that produces the cell-cell communication signal 3-oxohexanoyl-homoserine lactone (AHL). CI is the transcriptional repressor protein from phage λ. AHL binds to the constitutively expressed transcription factor LuxR to activate expression from the Plux-λ promoter while CI dominantly represses it. Plux-λ therefore functions as an X AND (NOT Y) transcriptional logic gate. (Right) The output of Plux-λ is lacZ, the product of which (β-galactosidase) cleaves a substrate in the media to produce black pigment (Experimental Procedures). The edge detection algorithm is encoded as 10,020 basepairs of DNA, carried on three plasmid backbones (Experimental Procedures).