1 Supplementary online material 2 Materials and Methods 3 Origin, preparation and transport of samples: Samples of Lissoclinum patella were carefully lifted from 4 the coral substratum into a bucket containing ambient seawater. Specimens were kept in a shaded aquarium 5 (<200 µmol photons m-2 s-1) with a continuous supply of fresh seawater (26-28°C) prior to sub-sampling. 6 Relatively flat and homogeneous pieces of L. patella with a surface area of ~2x2 cm were cut with a scalpel, 7 and immediately rinsed and submerged in filtered seawater. Vertical slices (~0.5-1 mm thick), cut with 8 sterilized razor blades, were mounted on microscope slides in seawater or, alternatively, fixed with an 9 embedding medium (Confocal Matrix, Micro-Tech-Lab, Austria) for further inspection. After imaging of 10 samples, three microbial consortia were sampled from: i) the upper surface layer, ii) the underside of L. 11 patella, both of which were collected using a sterilized razorblade, and iii) the middle section containing the 12 cloacal cavity harboring the deep green Prochloron spp. symbiont, which was collected using a pipette and 13 gentle squeezing. During microscopy and imaging, samples were kept submerged in sterile-filtered seawater 14 at all times. 15 Samples used for subsequent DNA extraction were immediately submerged in RNAlater (Ambion, Applied 16 Biosystems, USA), incubated in a refrigerator overnight and then frozen at -80°C the next morning. These 17 samples were transported back to the laboratory on dry ice and stored at -80°C upon arrival. 18 Microsensor measurements: A whole colony of L. patella (area of ~5x5 cm and ~0.5-1 cm thick) was 19 mounted on a piece of neoprene with thin stainless steel dissection needles and submerged in a flow-chamber 20 flushed with pre-heated (28ºC) and aerated seawater. The ascidian was illuminated vertically from above 21 with a fiber-optic halogen lamp (KL2500, Schott GmbH, Germany). Light intensity could be varied neutrally 22 by a built-in filterwheel with varying pin-hole numbers and sizes. Downwelling scalar irradiance at the level 23 of the ascidian was measured for defined lamp settings with a miniature scalar irradiance sensor (3 mm 24 diameter; Walz GmbH, Germany), which was connected and calibrated for use with a quantum irradiance 25 meter (LI-250, LiCor, USA). 26 Depth profiles of O2 concentration were measured in darkness and under defined irradiance levels with 27 electrochemical O2 microsensors (OX25 and OX50, Unisense, Denmark (Revsbech 1989) connected to a 28 microsensor multimeter (Unisense) and mounted on a motorized micromanipulator system (Unisense) 29 connected to a PC controlling data acquisition and sensor positioning with dedicated software (SensorTrace 30 Pro, Unisense). 31 To be able to insert the fragile O2 microsensors into the tough test material of the ascidian, the test was pre- 32 drilled with a thin sterile hypodermic needle (29G) at a zenith angle of ~40° relative to the vertically incident 33 light. Thereafter, the microsensor was positioned at the surface of the ascidians test using a dissection scope 34 (Olympus, Japan). After determination of the surface position (z=0) the microprofiling was done in steps of 35 0.2 mm through the ascidian tissue down to a depth of ~4-6 mm; deeper profiling was not attempted to avoid 36 breaking the fragile microsensor. 37 Depth profiles of spectral scalar irradiance were measured with a fiber-optic scalar irradiance microprobe 38 mounted in the motorized micromanipulator and connected to a fiber-optic spectrometer (QE65000, Ocean 39 Optics, USA) (Kühl 2005). Measured scalar irradiance spectra were normalized to the spectral downwelling 40 irradiance measured at a position equivalent to the animal tissue surface and determined by replacing the 41 ascidian with a black non-reflective beaker. 42 Hyperspectral imaging: The top and underside of pre-cut 2x2 cm pieces of ascidian tissues were imaged 43 under a dissection microscope (SZ X16, Olympus) equipped with a digital CCD camera (DP-71, Olympus) 44 using a fiber-optic halogen lamp (LG-PG2, Olympus) for homogeneous illumination of the field of view. We 45 used the same microscope and light source for hyperspectral imaging, by replacing the CCD camera with a 46 hyperspectral image scan unit (100T-VNIR, Themis-Vision, USA) (Kühl and Polerecky 2008). The 47 hyperspectral system was controlled via a PC running the software Hypervisual 2.2 (Themis-Vision). 48 Hyperspectral image stacks were obtained for the reflected light from samples, the reflected light from a 49 spectrally neutral reflectance standard (Spectralon, Labsphere, USA), and background noise under dark 50 conditions. Data were corrected (in Hypervisual 3.0, Themis-Vision) to % reflectance by subtracting 51 background noise and normalizing the sample reflectivity to the reflectivity from the reflectance standard. 52 Reflectance spectra averaged over particular AOI’s were subsequently calculated and extracted from the 53 hyperspectral image stack by the system software. After file format conversion in ENVI 4.8 (ITT Visual 54 Information Solutions, UK), further processing of corrected data were done according to (Polerecky et al 55 2009): The fourth derivative of the spectral reflectance [R(λ)] was used to determine the presence or absence 56 of pigments characterized by an absorption peak centered at λc, i.e. R4(λc). This was done using the freeware 57 Look@MOSI (http://www.microsen-wiki.net/doku.php?id=lookatmosi_howto). False color coded images 58 were used to determine relative pigment abundances using Adobe Photoshop CS5 Extended (Adobe 59 Systems, San Jose, CA, USA) by evaluating the coverage area of selected pixel intensities. This was 60 performed by a pixel wise color range selection, standardized to specific color range values of red, thus only 61 selecting the pixel intensities of interest. Coverage percentages were then calculated as the percentage of 62 selected pixels compared to the total number of pixels contained in the specimen image. Mounted cross- 63 sections of samples were also inspected using an Olympus BX51 fluorescence microscope system equipped 64 with a DP71 digital camera (Olympus). 65 66 Variable chlorophyll fluorescence imaging: For measurements on the photosynthetic activity of biofilms, 67 freshly cut samples were placed into seawater filled petri dishes. After focusing onto the area of interest 68 using the non-actinic infrared imaging function of the system, the sample was allowed to dark-adapt for 15 69 min before further measurements. After acquiring images of the reflectivity from the sample when irradiated 70 with red (R) and near-infrared (NIR) light, an image of the absorptivity of red light was calculated as A=1- 71 (R/NIR). The pulse-modulated measuring light was sufficiently weak (<1 μmol photons m s ) to be 72 considered non-actinic during assessment of the minimal fluorescence yield, F , of the dark-adapted sample. 73 Using the saturation-pulse-method, images of the maximal quantum yield of PSII photosynthetic energy 74 conversion, (ΦPSII) 75 measured at defined levels of actinic light, PAR. Relative rates of PSII-driven electron transport were 76 calculated as: rETR = A ΦPSII ×PAR. Automated measurements of these parameters were done with the -2 -1 0 ’ ’ m m = (F -F )/F and of the effective quantum yield of PSII, ΦPSII = (F -F)/F , were max m o m 77 imaging systems using a range of pre-defined irradiance levels. The sample was exposed to each actinic light 78 level for 10 s before a saturation pulse measurement, which was followed by a step-up to the next actinic 79 light level. With this procedure rapid light curves were obtained, giving a snapshot of the photosynthetic 80 light acclimation of the sample (Kühl et al 2001, Ralph and Gademann 2005). 81 82 Molecular analysis 83 Sequence analysis: A total of 237.988 amplicon sequence reads were obtained from pyrosequencing. Pre- 84 processing of sequencing reads, which included binning reads according to sample-barcodes, discarding 85 reads that were considered either too short (<150 bp) or too long (>350 bp), of too low quality (mean Phred 86 quality score <25), or contained any ambiguous bases or nucleotide homopolymers longer than 7 bp was 87 performed using the split_libraries.py script included in the quantitative insights into microbial ecology 88 software package (QIIME, version 1.2.1, http://qiime.sourceforge.net/). Additionally, reads in which either of 89 the amplification primers varied by more than 3 bases from the used primers were discarded. Primers were 90 removed from both ends, and in instances where reads did not contain the 806R primer sequence these 91 sequences were retained as long as the read length exceeded the minimum length of 150 bp. In total, 161.499 92 sequences were left for further sequence analysis. The following QIIME workflow was employed to generate 93 the OTU table: (1) sequences were clustered at 97% identity using the standard UCLUST parameters (-- 94 stepwords=20, --word_length=12, --max_accepts=20, --max_rejects=500), employed from version 1.2.1 of 95 QIIME. 96 of the Greengenes database (http://greengenes.lbl.gov) to verify that they were 16S rRNA sequences, (3) and 97 hypervariable columns were subsequently filtered out according to the greengenes lanemask and a 98 phylogenetic tree was constructed in FastTree (http://www.microbesonline.org/fasttree/). (4) Representatives 99 from each generated OTU were picked and assigned to appropriated taxa using BLASTN against a non- 100 redundant set of Greengenes reference sequences (gg_99_otus_4feb_2011) truncated to only contain the 101 V3/V4 hypervariable regions. All previous results were combined into a single OTU table. All OTUs 102 identified as chloroplasts were subsequently removed from the OTU table, reducing the total number of (2) Representatives from each OTU were picked and aligned against V3/V4 truncated core alignment 103 sequences in the dataset to 140.871. Species richness and diversity estimators were calculated on a rarefied 104 read library, previously cleaned for chloroplasts and archaea, to accommodate for the lowest number of reads 105 in our sample library (=4009) using the script implemented in Qiime. 106 107 Visualization and metabolic assignments: Only OTUs summing to >100 sequences across all samples 108 were used for further log10+1 transformation and visualization in the heatmap using the taxonomy 109 assignments described. OTU clustering is shown along the Y-axis, where dendrogram distances are based 110 upon relative abundances within the data matrix and not on phylogenetic relationships. The top dendrogram 111 is based on Euclidean distances and represents clustering according to relative abundances within the data 112 matrix. The heatmap was created in R (http://www.r-project.org/) using the pheatmap package. 113 114 Metabolic assignments are based on the same OTUs as displayed in the heatmap. Relative percentages of 115 OTU associated sequences were calculated for each layer (underside, surface and cloacal cavity) as well as 116 depth (deep, intermediate, shallow). Functional assignments were based on a thorough literature search 117 (reference list available upon request) and are based upon conservation of key properties within major 118 taxonomic groups. C- metabolism is classified as either phototrophy or chemotrophy, whereas O2 119 metabolism and their associated bacteria are classified as aerobes, anaerobes, facultative anaerobes and 120 obligate anaerobes. 121 122 123 124 125 126 127 Supplementary references: 128 Kühl M, Glud RN, Borum J, Roberts R, Rysgaard S (2001). Photosynthetic performance of surface- 129 associated algae below sea ice as measured with a pulse amplitude-modulated (PAM) fluorometer and O2 130 microsensors. Marine Ecology Progress Series 223: 1-14. 131 132 Kühl M (2005). Optical Microsensors for Analysis of Microbial Communities. Methods in Enzymology. 133 Academic Press. pp 166-199. 134 135 Kühl M, Polerecky L (2008). Functional and structural imaging of phototrophic microbial communities and 136 symbioses. Aquatic Microbial Ecology 53: 99-118. 137 138 Polerecky L, Bissett A, Al-Najjar M, Faerber P, Osmers H, Suci PA et al (2009). Modular Spectral Imaging 139 System for Discrimination of Pigments in Cells and Microbial Communities. Applied and Environmental 140 Microbiology 75: 758-771. 141 142 Ralph PJ, Gademann R (2005). Rapid light curves: A powerful tool to assess photosynthetic activity. Aquatic 143 Botany 82: 222-237. 144 145 Revsbech NP (1989). An Oxygen Microsensor with a Guard Cathode. Limnology and Oceanography 34: 146 474-478. 147 148 149 150 151 152 Supplementary figure and table legends: 153 Fig. S1: Classification of the ten most abundant phyla for the three depths and sampling locations presented 154 as pie charts. Relative percentages of the OTUs are given and are based on two (intermediate depth) or three 155 independent biological replicates (deep and shallow site). Chloroplasts have been removed but Archea have 156 been left for the analysis. 157 158 Fig. S2: Relative abundances of taxonomically classified OTUs and their respective metabolisms. The same 159 OTUs as displayed in the heatmap (see Fig. 4) were used to calculate the relative percentage of associated 160 sequences for each layer (“underside”, “surface” and “cloacal cavity”) and depth (“deep”, “intermediate”, 161 “shallow”). Associated bacterial OTUs were assigned metabolic classifications based on a thorough literature 162 research of their key conserved metabolic pathways. (A) Carbon metabolism classified as either phototrophy 163 or chemotrophy. (B) Oxygen metabolism with the four categories: aerobes, anaerobes, facultative anaerobes 164 and obligate anaerobes. 165 166 Table S1: General amplicon sequencing statistics. “Raw reads” denotes sequences that were not quality 167 checked. “Filtered reads” are sequences after quality checking. Bacteria, Archaea and Chloroplast are the 168 OTUs to which filtered sequences were assigned. “Total assigned” denotes those sequences that were 169 assigned to one of the OTUs mentioned above. 170