1 Derecki, N. C. et al. Regulation of learning and memory by meningeal immunity: a key role for IL-4. J. Exp. Med. 207, 1067–1080 (2010)

2 Bourke, A. F. Hamilton’s rule and the causes of social evolution. Phil. Trans. R. Soc. B 369, 20130362 (2014)

3 Cacioppo, S., Capitanio, J. P. & Cacioppo, J. T. Toward a neurology of loneliness. Psychol. Bull. 140, 1464–1504 (2014)

4 Kennedy, D. P. & Adolphs, R. The social brain in psychiatric and neurological disorders. Trends Cogn. Sci. 16, 559–572 (2012)

5 Ashwood, P. et al. Altered T cell responses in children with autism. Brain Behav. Immun. 25, 840–849 (2011)

6 Gupta, S., Aggarwal, S., Rashanravan, B. & Lee, T. Th1- and Th2-like cytokines in CD4+ and CD8+ T cells in autism. J. Neuroimmunol. 85, 106–109 (1998)

7 Waisman, A., Liblau, R. S. & Becher, B. Innate and adaptive immune responses in the CNS. Lancet Neurol. 14, 945–955 (2015)

8 Moy, S. S. et al. Sociability and preference for social novelty in five inbred strains: an approach to assess autistic-like behavior in mice. Genes Brain Behav. 3, 287–302 (2004)

9 Silverman, J. L., Yang, M., Lord, C. & Crawley, J. N. Behavioural phenotyping assays for mouse models of autism. Nature Rev. Neurosci. 11, 490–502 (2010)

10 Nelson, S. B. & Valakh, V. Excitatory/inhibitory balance and circuit homeostasis in autism spectrum disorders. Neuron 87, 684–698 (2015)

11 Supekar, K. et al. Brain hyperconnectivity in children with autism and its links to social deficits. Cell Reports 5, 738–747 (2013)

12 Zhan, Y. et al. Deficient neuron-microglia signaling results in impaired functional brain connectivity and social behavior. Nature Neurosci. 17, 400–406 (2014)

13 Shen, H. H. Core concept: resting-state connectivity. Proc. Natl Acad. Sci. USA 112, 14115–14116 (2015)

14 Brynskikh, A., Warren, T., Zhu, J. & Kipnis, J. Adaptive immunity affects learning behavior in mice. Brain Behav. Immun. 22, 861–869 (2008)

15 Yednock, T. A. et al. Prevention of experimental autoimmune encephalomyelitis by antibodies against α4β1 integrin. Nature 356, 63–66 (1992)

16 Kunis, G. et al. IFN-γ-dependent activation of the brain’s choroid plexus for CNS immune surveillance and repair. Brain 136, 3427–3440 (2013)

17 Tsuda, M. et al. IFN-γ receptor signaling mediates spinal microglia activation driving neuropathic pain. Proc. Natl Acad. Sci. USA 106, 8032–8037 (2009)

18 Prieto, J. J., Peterson, B. A. & Winer, J. A. Morphology and spatial distribution of GABAergic neurons in cat primary auditory cortex (AI). J. Comp. Neurol. 344, 349–382 (1994)

19 Oláh, S. et al. Regulation of cortical microcircuits by unitary GABA-mediated volume transmission. Nature 461, 1278–1281 (2009)

20 Han, S., Tai, C., Jones, C. J., Scheuer, T. & Catterall, W. A. Enhancement of inhibitory neurotransmission by GABAA receptors having α2,3-subunits ameliorates behavioral deficits in a mouse model of autism. Neuron 81, 1282–1289 (2014)

21 Wang, L., Dankert, H., Perona, P. & Anderson, D. J. A common genetic target for environmental and heritable influences on aggressiveness in Drosophila. Proc. Natl Acad. Sci. USA 105, 5657–5663 (2008)

22 Datwani, A. et al. Classical MHCI molecules regulate retinogeniculate refinement and limit ocular dominance plasticity. Neuron 64, 463–470 (2009)

23 Djurisic, M. et al. PirB regulates a structural substrate for cortical plasticity. Proc. Natl Acad. Sci. USA 110, 20771–20776 (2013)

24 Steinman, L. Inflammatory cytokines at the summits of pathological signal cascades in brain diseases. Sci. Signal. 6, pe3 (2013)

25 Smith, L. K. et al. β2-microglobulin is a systemic pro-aging factor that impairs cognitive function and neurogenesis. Nature Med. 21, 932–937 (2015)

26 Baruch, K. et al. Aging-induced type I interferon response at the choroid plexus negatively affects brain function. Science 346, 89–93 (2014)

27 McCusker, R. H. & Kelley, K. W. Immune-neural connections: how the immune system’s response to infectious agents influences behavior. J. Exp. Biol. 216, 84–98 (2013)

28 Scholz, J. & Woolf, C. J. The neuropathic pain triad: neurons, immune cells and glia. Nature Neurosci. 10, 1361–1368 (2007)

29 Bhat, R. et al. Inhibitory role for GABA in autoimmune inflammation. Proc. Natl Acad. Sci. USA 107, 2580–2585 (2010)

30 López-Muñoz, A. et al. Evolutionary conserved pro-inflammatory and antigen presentation functions of zebrafish IFNγ revealed by transcriptomic and functional analysis. Mol. Immunol. 48, 1073–1083 (2011)

31 Filiano, A. J. et al. Dissociation of frontotemporal dementia-related deficits and neuroinflammation in progranulin haploinsufficient mice. J. Neurosci. 33, 5352–5361 (2013)

32 Johnson, G. A. et al. Waxholm space: an image-based reference for coordinating mouse brain research. Neuroimage 53, 365–372 (2010)

33 Avants, B. B. et al. A reproducible evaluation of ANTs similarity metric performance in brain image registration. Neuroimage 54, 2033–2044 (2011)

34 Avants, B. B. et al. The pediatric template of brain perfusion. Sci. Data 2, 150003 (2015)

35 Power, J. D., Barnes, K. A., Snyder, A. Z., Schlaggar, B. L. & Petersen, S. E. Spurious but systematic correlations in functional connectivity MRI networks arise from subject motion. Neuroimage 59, 2142–2154 (2012)

36 Behzadi, Y., Restom, K., Liau, J. & Liu, T. T. A component based noise correction method (CompCor) for BOLD and perfusion based fMRI. Neuroimage 37, 90–101 (2007)

37 Jennrich, R. I. An asymptotic χ2 test for the equality of two correlation matrices. J. Am. Stat. Assoc. 65, 904–912 (1970)

38 Palop, J. J., Mucke, L. & Roberson, E. D. Quantifying biomarkers of cognitive dysfunction and neuronal network hyperexcitability in mouse models of Alzheimer’s disease: depletion of calcium-dependent proteins and inhibitory hippocampal remodeling. Methods Mol. Biol. 670, 245–262 (2011)

39 Li, Z., Hall, A. M., Kelinske, M. & Roberson, E. D. Seizure resistance without parkinsonism in aged mice after tau reduction. Neurobiol. Aging 35, 2617–2624 (2014)

40 Ting, J. T., Daigle, T. L., Chen, Q. & Feng, G. Acute brain slice methods for adult and aging animals: application of targeted patch clamp analysis and optogenetics. Methods Mol. Biol. 1183, 221–242 (2014)

41 Nusser, Z. & Mody, I. Selective modulation of tonic and phasic inhibitions in dentate gyrus granule cells. J. Neurophysiol. 87, 2624–2628 (2002)

42 Andrews, S. FastQC: a quality control tool for high throughput sequence data (2010)

43 Dobin, A. et al. STAR: ultrafast universal RNA-seq aligner. Bioinformatics 29, 15–21 (2013)

44 Liao, Y., Smyth, G. K. & Shi, W. featureCounts: an efficient general purpose program for assigning sequence reads to genomic features. Bioinformatics 30, 923–930 (2014)

45 Love, M. I., Huber, W. & Anders, S. Moderated estimation of fold change and dispersion for RNA-seq data with DESeq2. Genome Biol. 15, 550 (2014)

46 R Core Team. R: a language and environment for statistical computing (R Foundation for Statistical Computing, 2010)

47 Subramanian, A. et al. Gene set enrichment analysis: a knowledge-based approach for interpreting genome-wide expression profiles. Proc. Natl Acad. Sci. USA 102, 15545–15550 (2005)

48 López-Muñoz, A., Roca, F. J., Meseguer, J. & Mulero, V. New insights into the evolution of IFNs: zebrafish group II IFNs induce a rapid and transient expression of IFN-dependent genes and display powerful antiviral activities. J. Immunol. 182, 3440–3449 (2009)

49 Engeszer, R. E., Patterson, L. B., Rao, A. A. & Parichy, D. M. Zebrafish in the wild: a review of natural history and new notes from the field. Zebrafish 4, 21–40 (2007)

50 Krause, J., Butlin, R. K., Peuhkuri, N. & Pritchard, V. L. The social organization of fish shoals: a test of the predictive power of laboratory experiments for the field. Biol. Rev. Camb. Phil. Soc. 75, 477–501 (2000)

51 Miller, N. & Gerlai, R. Quantification of shoaling behaviour in zebrafish (Danio rerio). Behav. Brain Res. 184, 157–166 (2007)

52 Saverino, C. & Gerlai, R. The social zebrafish: behavioral responses to conspecific, heterospecific, and computer animated fish. Behav. Brain Res. 191, 77–87 (2008)

53 Barba-Escobedo, P. A. & Gould, G. G. Visual social preferences of lone zebrafish in a novel environment: strain and anxiolytic effects. Genes Brain Behav. 11, 366–373 (2012)

54 Moretz, J. A., Martins, E. P. & Robison, B. D. Behavioral syndromes and the evolution of correlated behavior in zebrafish. Behav. Ecol. 18, 556–562 (2007)

55 Wright, D., Butlin, R. K. & Carlborg, O. Epistatic regulation of behavioural and morphological traits in the zebrafish (Danio rerio). Behav. Genet. 36, 914–922 (2006)

56 Zala, S. M., Määttänen, I. & Penn, D. J. Different social-learning strategies in wild and domesticated zebrafish, Danio rerio. Anim. Behav. 83, 1519–1525 (2012)

57 Levine, J. D., Funes, P., Dowse, H. B. & Hall, J. C. Resetting the circadian clock by social experience in Drosophila melanogaster. Science 298, 2010–2012 (2002)

58 Mery, F. et al. Public versus personal information for mate copying in an invertebrate. Curr. Biol. 19, 730–734 (2009)

59 Ruan, H. & Wu, C. F. Social interaction-mediated lifespan extension of Drosophila Cu/Zn superoxide dismutase mutants. Proc. Natl Acad. Sci. USA 105, 7506–7510 (2008)

60 Sarin, S. & Dukas, R. Social learning about egg-laying substrates in fruitflies. Proc. R. Soc. B 276, 4323–4328 (2009)

61 Sokolowski, M. B. Social interactions in “simple” model systems. Neuron 65, 780–794 (2010)

62 Wertheim, B., van Baalen, E. J., Dicke, M. & Vet, L. E. Pheromone-mediated aggregation in nonsocial arthropods: an evolutionary ecological perspective. Annu. Rev. Entomol. 50, 321–346 (2005)

63 Hoffmann, A. A. A laboratory study of male territoriality in the sibling species Drosophila melanogaster and D. simulans. Anim. Behav. 35, 807–818 (1987)

64 Kamyshev, N. G. et al. Plasticity of social behavior in Drosophila. Neurosci. Behav. Physiol. 32, 401–408 (2002)

65 Bailey, T. L. et al. MEME SUITE: tools for motif discovery and searching. Nucleic Acids Res. 37, W202–W208 (2009)