a, Alternative splicing of Dscam1. The inset shows a schematic of Dscam1 isoform-specific homophilic binding. The crystal structure shows that variable domains pair in an antiparallel configuration23,24. Binding requires matching of variable domains; one mismatch (right, pink arrowheads) disrupts binding. b, Dscam1 alleles with reduced diversity. Alternative exons were replaced with cDNAs encoding exons 7–11 and 5–11 to generate Dscam1576-isoform and Dscam112-isoform alleles, respectively (asterisks). Sequence modified is indicated with blue line. Dscam1FRT is a control for Dscam1576-isoform and Dscam112-isoform knock-in alleles, and contains an FRT site as a result of homologous recombination11. Three different alleles were generated for each mutant. x.y.z refers to combinations of exon 4, 6 and 9, respectively, encoded by alleles. Dscam1Δ4.1–4.3 and Dscam1Δ4.4–4.12 were reported previously14. c, Self-repulsion of dendritic arborization neurons requires Dscam1. Red arrowheads, self-crossing of class I (vpda) dendrites. d, Representative images of dendritic arborization neuron dendrites in different Dscam1 mutants. See Supplementary Fig. 3 for larger images. All neurons were visualized with anti-HRP antibody (magenta), and class I (vpda) neurons were labelled with GFP (green; appears white because they overlap with magenta). Class III (v′pda) neurons were traced from cell bodies16 (insets). Yellow arrowheads, crossing between class I and III dendrites. Scale bars, 50 μm. e, Self-repulsion is intact in all mutants with reduced diversity. Numbers in parenthesis denote class I neurons analysed for each genotype. Data in boxplot format (thick line, median; box, 25–75% quartiles; error bar, data within 1.5× quartile range; circles, outliers). ***P < 0.001; Student’s t-test. f, Increasing the number of available isoforms increases overlaps between class I and class III dendrites. Numbers in parenthesis, class I/III pairs analysed. Data in boxplot format. **P < 0.01, ***P < 0.001; Wilcoxon rank test. Thousands of isoforms are required for normal degree of overlap. For genotypes, see Methods.