Skip to main content
Nature Communications logoLink to Nature Communications
. 2024 Jul 9;15:5753. doi: 10.1038/s41467-024-49704-0

Stimulus type shapes the topology of cellular functional networks in mouse visual cortex

Disheng Tang 1,2,3,, Joel Zylberberg 4,5,✉,#, Xiaoxuan Jia 1,3,6,✉,#, Hannah Choi 2,7,✉,#
PMCID: PMC11233648  PMID: 38982078

Abstract

On the timescale of sensory processing, neuronal networks have relatively fixed anatomical connectivity, while functional interactions between neurons can vary depending on the ongoing activity of the neurons within the network. We thus hypothesized that different types of stimuli could lead those networks to display stimulus-dependent functional connectivity patterns. To test this hypothesis, we analyzed single-cell resolution electrophysiological data from the Allen Institute, with simultaneous recordings of stimulus-evoked activity from neurons across 6 different regions of mouse visual cortex. Comparing the functional connectivity patterns during different stimulus types, we made several nontrivial observations: (1) while the frequencies of different functional motifs were preserved across stimuli, the identities of the neurons within those motifs changed; (2) the degree to which functional modules are contained within a single brain region increases with stimulus complexity. Altogether, our work reveals unexpected stimulus-dependence to the way groups of neurons interact to process incoming sensory information.

Subject terms: Striate cortex, Sensory processing, Computational neuroscience


How interactions among neurons depend on stimulus complexity remains unclear. Here the authors characterize stimulus-dependence of triplet connectivity patterns and modules in functional networks of neurons, revealing a key organizational principle.

Introduction

Visual information is processed by networks of neurons spanning multiple regions of the neocortex. The interactions between these neurons determine the sensory information extracted by the brain and used to guide behavior. For this reason, much prior work has investigated properties of the networks that define the interactions between neurons in visual cortex. For example, some work has focused on the patterns of anatomical connectivity between individual neurons14, or between larger voxels of cortical tissue58. At the same time, functional networks—which describe the interactions between neurons—can differ substantially from anatomical networks911. Notably, while anatomical connectivity is relatively fixed on the timescale of sensory processing, functional connectivity can vary as the neurons within the network adjust their firing patterns quickly to different stimuli12,13. This motivated us to ask whether and how different stimuli might engage different functional networks with single-neuron resolution within the visual cortex. Despite the clear importance of this question for understanding visual processing, and the substantial literature on functional and anatomical neural network structures (reviewed below), we are unaware of any prior work that addressed how the topological structure of functional networks between individual neurons spanning multiple regions varies as the stimulus type changes. To fill this knowledge gap, we applied network analyses to simultaneous recordings from hundreds of neurons in mouse visual cortex. Our results indicate that distinct stimulus types can lead to different topological structures of functional networks between individual neurons in visual cortex.

Previous work investigated anatomical connectivity between cortical neurons and regions using electron microscopy4,14, paired intracellular electrophysiology recordings1,2, viral tracing5,15, and diffusion tensor imaging16. These studies revealed many interesting features of anatomical neuronal connectivity networks, like their modular organization and small-worldness5,15,17,18, and their hierarchical structure15. While anatomical connectivity (e.g., synaptic connections between neurons) remains relatively static over the timescale of processing visual inputs, functional connectivity can be much more dynamic, thus motivating efforts to understand the relation between functional and anatomical connectivity7,11,1921. These efforts are complicated by the fact that different types of stimuli lead to different dynamical patterns of neural activity and to different degrees of correlation between neurons2229. Because functional connectivity depends on these properties—e.g., on the time-lagged correlation between the activities of neuron pairs30,31—the functional connectivity can depend on the stimulus presented in the experiment.

Despite this potential complication, stimulus- and task-related functional connectivity patterns obtained at a coarse scale using non-invasive functional magnetic resonance imaging (fMRI) have been reported to resemble resting-state functional connectivity patterns3234, while resting-state connectivity in turn resembles anatomical connectivity patterns35. In other reports—again, derived from fMRI experiments—stimulus-evoked functional interactions were found to vary with tasks or cognitive states3640. These fMRI studies raised the important question of whether and how the functional connectivity of the underlying neuronal networks (i.e., at a finer single-neuron scale) might change with stimulus or task conditions.

Studying functional connectivity at this finer scale presents significant challenges due to technical limitations in simultaneously recording from large populations of neurons with high spatial and temporal resolution. Despite these challenges, prior work has shown that functional connectivity: (1) shows frequency dependency41,42; (2) varies by cell type within the cortex43; (3) depends on the contrast of a visual stimulus44; and (4) reflects the existence of two main groups of neurons, one whose activities follow those of the rest of the population, and one whose activities do not26. Other studies looked into assembly neurons45, network dynamics46, small-worldness47,48 and rich-club structure49. While these studies have revealed much about the stimulus-dependence of functional networks at single-neuron resolution, they have not included detailed analyses of networks spanning multiple brain regions evoked by distinct stimulus types. On the other hand, the previous reports of network analysis applied to single-neuron resolution functional networks, either focused on responses mainly to drifting grating stimulus with spontaneous activity as a baseline comparison30,31, thus precluding an assessment of stimulus-dependent network structure, or investigated the short-term adaptation of pairwise functional connections50, lacking a comprehensive analysis of the whole network. Therefore, it is still unclear whether and how the topological organization of these functional networks (either within a brain region, or spanning multiple regions) depends on stimulus properties or other context-defining variables51.

To fill this gap, we used network analysis methods (similar to those of refs. 30,31) to analyze the functional networks measured in response to 6 different types of stimuli, of varying degrees of complexity, ranging from full-field flashes up to natural movies. These networks were obtained from the simultaneously recorded activities of hundreds of neurons in 6 different cortical regions with implanted Neuropixels probes30. Thus, we were able to identify functional networks for each stimulus type, which spanned multiple brain regions. Note that to focus on between-stimulus analyses, we constructed one network based on all conditions for each stimulus type, hence the functional networks embody total correlations rather than signal or noise correlations. By studying the structures of these networks and how they varied with stimulus type, we identified several surprising features of the functional networks. First, while the distribution of different types of 3-neuron connectivity motifs were quite similar for the different stimuli, the specific identities of the neurons within those motifs depended on the stimulus. This means that the cortical network is dynamically reorganized as the stimulus type changes, but does so in a manner that preserves the motif frequencies. This finding points to a potentially fundamental role for these motif distributions in maintaining the function of the cortical networks52,53. Secondly, we identified highly-interacting modules54,55 and found that these modules were much more localized to a single brain region (as opposed to being distributed between regions) for stimuli with higher complexity, such as natural movies. Our results thus reveal distinct stimulus-dependent topology of cortical functional networks, and imply a key organizational principle underlying that stimulus-dependence: preserved relative motif frequencies.

Results

To determine whether and how visual cortical functional networks depend on the stimulus presented to the animal, we analyzed data from Neuropixels probes inserted into six visual regions of mouse cortex (Fig. 1A: V1, LM, RL, AL, PM, AM), which is previously released by Allen Institute30. These probes simultaneously recorded neural activity from each of these six regions while the mice were presented with visual stimuli of varying degrees of complexity (Fig. 1B): flashes, drifting gratings, static gratings, natural scenes and movies, and gray screen (approximation for resting state, or spontaneous activity). From the responses to each stimulus, we extracted the directed functional connectivity using cross-correlograms (CCGs) between the spiking responses of pairs of neurons (Fig. 1C). In order to take polysynaptic connections into consideration56, we examined ‘sharp intervals’ instead of the ‘sharp peaks’ that might be used to identify functions of monosynaptic connections30,57,58. These sharp intervals were defined to have a short latency and potentially multiple time lags, and were detected by searching for statistically significantly outlying values in the CCG. Identification of bidirectional connections was made possible by limiting lag τ to be non-negative, and each significant connection was defined as positive or negative depending on the sign of the significantly outlying CCG value (see Fig. 1C and Methods), similar to the definition used in previous work59. Intuitively, if the spiking of the source neuron is statistically strongly correlated with the firing or non-firing of the target neuron with a short time lag, then there exists a positive or negative functional connection between them. It is noteworthy that within our analyses, excitatory and inhibitory anatomical connections should be observed as positive and negative functional connections, respectively. However, it is essential to acknowledge that the reverse inference may not hold true. This is because, unlike effective or causal connections, functional connections reflect the co-occurrence of spiking activities rather than direct influence or causation.

Fig. 1. From spike trains to functional connectivity for mouse visual cortex.

Fig. 1

A Schematic of data collection with Neuropixels probes inserted through six visual cortical areas (AM, PM, AL, RL, LM and V1), adapted from Jia, X. et al. High-density extracellular probes reveal dendritic backpropagation and facilitate neuron classification. Journal of neurophysiology 121, 1831-1847 (2019)124. B Example spike trains of 741 units from the visual cortex of a mouse during six different types of stimuli. For brevity, each stimulus type is denoted using a unique symbol in all figures. Image credit: Allen Institute for Brain Science. [https://observatory.brain-map.org/visualcoding/]. C Example jitter-corrected CCGs (cross-correlograms) of positive (red)/negative (blue), unidirectional/bidirectional and monosynaptic (“sharp peak”)/polysynaptic (“sharp intervals”) connections. D (left) Example matrix of jitter-corrected CCG with units ordered by area during natural movie stimuli. (right) Connectivity matrix with only significant connections (∣Z∣ > 4). E Density of positive and negative connections during all visual stimuli. Density is defined as the number of connections normalized by total possible number of connections. Error bars represent 95% confidence interval, n = 7 mice. F Fraction of within-area connections, fraction of positive connections and clustering coefficient against network density. Each visual stimulus is characterized by a symbol, consistent with (B). P values are obtained through two-sided Wald test. G Kernel density estimation (KDE) of signal correlation distributions for disconnected neuron pairs and pairs with negative/positive connections during presentations of four types of visual stimuli.

To obtain a comprehensive understanding of the stimulus-dependent structure of the functional networks (Fig. 1D), we conducted network analyses at multiple topological scales, ranging from the properties of pairwise connections to the local connectivity patterns of third-order functional motifs, up to larger-scale functional modules. Our control analysis on running speed (Supplementary Fig. 1) showed that our subsequent observations are indeed determined by the stimulus and not by locomotion.

Stimulus dependency of functional networks

We first investigated overall patterns of functional connections between neurons across stimulus types by comparing the functional connectivity matrices. We found there are some common network features observed across stimulus types. Specifically, the functional networks observed during all visual stimuli exhibited heavy-tailed degree distributions (Supplementary Fig. 2B). Networks with this property are known to be robust to random failures60, however, they are more vulnerable to targeted attacks on hub neurons which could lead to reduced network efficiency as observed in Alzheimer’s patients61,62.

While functional networks show some shared characteristics like heavy-tailed degree distributions across stimuli, we also observed network properties vary with stimulus complexity. We found that natural stimuli (natural scenes and movies) tended to evoke fewer functional connections than grating stimuli (both static and drifting gratings) while full-field flashes drive the least correlated neural activities, on the same level as resting state activity (Fig. 1E). These findings are consistent with previous reports that natural stimuli decorrelate neurons in primary visual cortex (V1)63,64. While these previous works focus on V1, our results suggest that decorrelation by natural stimuli is a general property of cortical circuits: it is found in higher visual cortical areas as well.

While number of nodes (neurons) is predetermined by experimental recording, network density, defined as the present number of connections normalized by the maximum possible number of connections, alone displays the most fundamental properties of a functional network. The differences in network density mainly originate from differences in positive connections (Fig. 1E), which results in the strong correlation between the fraction of positive connections and the network density (Fig. 1F, middle). We did a thorough analysis of the firing-rate dependence of functional connections and found that the difference in the number of connections during various stimulus types cannot be explained by the difference in firing rate (Supplementary Fig. 3). Even though natural stimuli do not evoke the densest functional networks, the fraction of within-area connections is largest for static gratings and natural stimuli (Fig. 1F, left, and Supplementary Fig. 2A; p = 1.0 × 10−3, Kolmogorov–Smirnov test, one-sided). This is closely related to the stimulus-dependent differences in modular network structure, which we analyzed in more details later in this paper.

To determine how the stimulus-dependence of the network density affects the network’s topological structure, we measured the tendency for triplets of neurons to form closed triangles (e.g., three-neuron motifs 6,7,9-13 in Fig. 2C). This tendency is quantified by the clustering coefficient, and we found that it increases with increasing network density regardless of stimulus type (Fig. 1F, right).

Fig. 2. Highly preserved local structure during different types of visual stimuli.

Fig. 2

A Illustration of the surrogate models: Erdős–Rényi model, Degree-preserving model, Pair-preserving model and Signed-pair-preserving model that exhibit a progressive increase in the number of preserved network properties. The preserved properties are the number of nodes (V)/edges (E), degree distribution, neuron-pair distribution and signed-pair distribution, respectively. The real network used to generate the synthetic networks is sampled from an example session during drifting gratings. B Relative count of signed neuron pairs using Erdős–Rényi model. All three types of bidirectional pairs are considerably over-represented. Box plots indicate median (middle line), 25th, 75th percentile (box) and minimum and maximum (whiskers), n = 7 mice. C 13 types of motifs without edge signs. Examples of signed motifs based on Feedforward Loop structure (motif ID = 6) are shown. Positive-FFL-based (pFFLb) motifs are defined as motifs with at least one FFL structure consisting of all positive connections. Note that pFFLb motifs can be classified into four types based on the number of mutual connections: zero (ID = 6), one (ID = 9, 10, 11), two (ID = 12) and three (ID = 13). In what follows, we use the prefix “p” or “n” to denote signed motif types with only positive connections or only negative connections, respectively. D Motif intensity significance sequences of all signed motifs (signed three-neuron subnetworks). Each row shows results for a certain stimulus type and each color corresponds to a certain unsigned motif structure. Motif intensity significance for each signed motif is obtained through its intensity Z-score of the empirical network with Signed-pair-preserving model as the reference. The overall sequences are highly similar across visual stimulus classes, with six types of over-represented motifs (pFFLb motifs) and three under-represented motifs preserved. It is worth noting that the above-mentioned nine significant motifs only contain positive connections.

Motivated by previous work showing that neurons with similar preferences tend to connect with each other2,4,65, we compared the tuning similarity of neuronal pairs connected with positive and negative connections. To perform this comparison, we computed the kernel density estimation (KDE) for signal correlation during presentation of four visual stimulus types. Signal correlation is defined as the correlation between average responses of neurons to different stimulus conditions which is used to test whether two neurons have similar tuning curves23,66. We computed these signal correlation separately for pairs with positive connections, negative connections, and those with no connections (Fig. 1G). For natural movies, we regarded each frame as a different stimulus condition when computing the signal correlation2. Since there are only two conditions for flashes (dark or light), the signal correlation of either 1 or −1 could be trivial and thus is not considered in this analysis. Similarly, the signal correlation is ill-defined for the blank gray screen stimulus, and thus it was also omitted from this analysis.

For all visual stimuli, the signal correlations for connected neuron pairs tended to be larger than for disconnected pairs, which had distributions centered around zero (Fig. 1G; p < 7.0 × 10−150, rank-sum test, one-sided, adjusted using Benjamini/Hochberg method). Additionally, neurons with positive connections tended to have higher signal correlations than did pairs with negative connections (Fig. 1G; p < 1.6 × 10−3, rank-sum test, one-sided, adjusted using Benjamini/Hochberg method).

In agreement with the previous findings that neurons close in space or sharing similar tuning curves are more likely to have synaptic connections2,65, we found the probability of functional connections decreases with increasing distance and increases with their increasing signal correlation (Supplementary Fig. 4A, B; Cochran–Armitage test, two-sided). In addition, the probability of a functional connection being positive/negative significantly increased/decreased with signal correlation during all visual stimuli (Supplementary Fig. 4C, D; Cochran–Armitage test, two-sided), indicating that even though neurons with similar preferences generally tend to be connected, the sign of the connection depends on the extent of their tuning similarity.

Collectively, these analyses show that network density, fraction of connections that are within a brain region (as opposed to between regions), clustering coefficient, and the distribution of signal correlation, depend systematically on the stimulus type.

Stimulus dependency of functional motifs

Having observed stimulus-dependency of the general network properties, we next turned our attention to the properties of the functional motifs. Specifically, we investigated two- and three-node motifs in the functional network. Similar to anatomically-defined structural motifs which form fundamental building blocks of neural circuits1,67,68, functional motifs, which are defined by correlated neural activities, represent elementary information processing components of a functional network69. Although extensive over-representation of certain network motifs such as feedforward loop is found mostly in anatomical networks1,52,67,70, functional motifs (especially triplets) also have been discovered to reflect the level of consciousness71,72, accurately predict neural activity73, encode global topological information74, and exhibit coupling with anatomical connections75.

To understand the distribution of two- and three-neuron motifs in each functional network, we adopted the intensity method for functional motif detection. This method computes the Z-score of the intensity for a given motif by comparing the motif frequency in the empirical network and in a randomly-generated surrogate network76. This method thus identifies how much more (or less) prevalent the motif is in the real network than would be expected by chance in a reference network randomly shuffled with certain preserved properties (e.g., density, degree distribution, etc) (Fig. 2A).

Note that, to characterize pairwise signed connections (i.e., signed two-neuron motifs), it is necessary to preserve the edge sign distribution when generating density-matched randomized surrogate networks77. For this reason, we included edge signs in the Pair-preserving model67 that preserves the distribution of (n-1)-neuron motifs and used the resultant Signed-pair-preserving model to generate the surrogate network with the preserved signed (n-1)-neuron motifs for comparing the motif frequency between the true network and the randomly-generated one (Fig. 2A). Furthermore, we have consistently observed and validated our findings by maintaining the discretized distribution of anatomical distances between neurons (as shown in Supplementary Fig. 5). This rigorous approach underscores the robustness of our primary conclusions, affirming that they are an accurate representation of the inherent characteristics of the functional networks within the mouse visual cortex. In light of the limited data on the anatomical location of neurons, we have adopted the Signed-pair-preserving model for all analyses in the subsequent sections of our study.

As for two-neuron motifs, we found that bidirectional signed functional connections are much more frequent than would be expected by chance in the random network (Fig. 2B). This recapitulates the structural observations that bidirectional synaptic connections are highly over-represented in cortex relative to density-matched random networks1.

We further studied distributions of three-neuron motifs in functional networks. There are 13 types of connected three-neuron motifs (Fig. 2C), of which the Feedforward Loop (FFL) is arguably the most studied type due to its ubiquitous nature in empirical networks such as gene systems and neuronal networks70. The lollipop plot in Fig. 2D shows the intensity Z-score obtained using the above intensity method for all types of signed three-neuron motifs ordered by their corresponding unsigned motif types. The colors in the plot represent each unsigned type (see Supplementary Fig. 6 for the full set of signed connectivity patterns). Interestingly, the most salient motifs were the same for the different visual stimuli. Specifically, the top six over-represented motifs are the same for different stimuli tested here (Fig. 2D, motif ID = p6, p9, p10, p11, p12, p13). In addition to these significantly over-represented motifs, the same three types of motifs were significantly under-represented for all stimuli (ID = p4, p5, p8). Interestingly, all 6 over-represented motifs contain at least one positive FFL (pFFL) structure (ID = p6, Fig. 2D) with the only difference among them being the number of mutual connections that accompany the pFFL structure. The last five of these over-represented motifs were studied without edge signs in previous works as ‘mixed-feedforward-feedback loops’ and have been found to be correlated to memory, as well as acceleration and delay of response78. Here we denote all six of the over-represented signed motifs as positive-feedforward-loop-based (pFFLb) motifs.

In addition to the three highly under-represented motifs (ID = p4, p5, p8), the set of under-represented motif patterns consists largely of ‘unclosed’ pFFLb motifs, suggesting that neurons tend to form pairwise-connected triplets. This under-representation of unclosed motifs appears to be more pronounced with higher network density. Interestingly, the motifs’ average absolute intensity Z-scores (deviation from the frequency expected by chance) increases significantly with increasing network density (Fig. 3A; Wald test, two-sided). With more connections, the empirical functional network deviates more strongly from randomized surrogate networks, highlighting the fundamental non-randomness of local functional connectivity.

Fig. 3. Same motifs and similar patterns are organized from different neurons.

Fig. 3

A Averaged absolute motif significance (intensity Z-score) across all signed motifs against network density. Similar to within-area fraction and clustering coefficient (Fig. 1F), there is also a logarithmic relationship between motif significance and density (Wald test, two-sided). B Pairwise correlation of normalized motif intensity distribution for six visual stimuli. High correlation proves the similar motif presence during different types of stimuli. C Signal correlation during four visual stimuli (except for resting state and flash) for within-pFFLb-motif connections and other connected neuron pairs. *p < 0.05, **p < 0.01, rank-sum test, one-sided. Error bars represent 95% confidence interval, n = 7 mice. D Fraction of motifs with at least one V1 neuron or all three V1 neurons during all visual stimuli for six over-represented positive-feedforward-loop-based (pFFLb) motifs. The variation in regional composition indicates the change of constituent neurons for pFFLb motifs across different visual stimuli. Error bars represent 95% confidence interval. E Intersections of unique motif sets for motif ID = p6 during six types of stimuli. Horizontal bar plot shows the number of signed motif ID = p6 for each type of stimulus while vertical bar plot displays the size of each intersection set. A unique motif is defined as a certain signed motif with three specific neurons, and intersections with less than 20 elements are removed for brevity (see Supplementary Fig. 12 for the complete results on all pFFLb motifs). A large number of unique motifs appear only during one type of stimuli, demonstrating that even though functional motifs are preserved across visual stimuli, constituent neurons are changing. F Multiple motif intensity significance sequences were obtained through four different reference models for natural movies as the representative stimulus type. Motif order (clockwise) and color are consistent with (D) and Fig. 2D, and connectivity pattern is shown only once for each type of most significant signed motif for brevity.

Note that it is important to examine the whole significance distribution of motifs instead of focusing on merely the most striking ones. Varying the threshold on significant motifs naturally changes their total count, but importantly, it does not substantially change the relationship between the functional connectivity patterns observed for the different stimuli (Supplementary Fig. 7B). Our control analysis has led us to the conclusion that the presence of non-random local topology of functional networks is contingent upon the density of the network (Fig. 3A), which is, in turn, modulated by sensory input (Fig. 1E). Meanwhile, the same sets of two- and three-neuron connectivity motifs are over- and under-represented for all 6 visual stimuli.

Our analysis of the connectivity motifs relies on comparing motif frequencies in the observed network to those reference networks that are similar in some way to the observed network but are otherwise randomized. Notably, there are many different ways to define random networks by preserving certain network properties. For example, the commonly used Erdős–Rényi reference network preserves the network density. Other reference models can preserve the degree distribution, the neuron pair distribution, or the signed neuron pair distribution (Fig. 2A; Methods). To understand how our motif analysis depends on the choice of reference model, we computed the three-neuron motif intensities for the natural movie stimulus for 4 different reference models with increasingly more preserved network properties (from left to right in Fig. 3F). As a result, the overall significance level for all motif types roughly decreases in the same order, and the most strictly conserved reference model, the signed pair-preserving reference model, is better in identifying the small subset of motifs for which the observed network is most truly non-random. Therefore, we use the signed pair-preserving reference model as our default reference model throughout this study.

To test the robustness of our results, we separately calculated the motif distribution patterns on distinct halves of the trials from our natural scene stimulus data. The high consistency between the motif distributions on the two data splits (Supplementary Fig. 8) suggests that noise within the dataset is unlikely to be a key factor in our results. Furthermore, pFFLb motifs consistently emerge as the most salient motifs across different stimuli at various significance levels (Supplementary Fig. 9), with increased CCG window size (Supplementary Fig. 10) and when considering potential joint modulation from unobserved neurons (Supplementary Fig. 11). Taken together, pFFLb motifs seem to be reliably the most significant patterns among three-neuron subgraphs.

Properties of over-represented three-neuron motifs

While the three-neuron functional motifs that were most over- or under-represented were the same for all stimuli (Fig. 3B), those motifs were composed of different neurons for different stimulus types (Fig. 3D, E). Specifically, while most pFFLb motifs contained at least one neuron from V1, the fraction containing all 3 neurons within V1 varied substantially as the stimulus type changed. (Fig. 3D).

To further quantify the extent to which the same neurons constitute pFFLb motifs across stimuli, we computed the number of pFFLb motifs sharing exactly the same neurons for all pairs of stimuli (intersection sizes), as shown in Fig. 3E for one example over-represented pFFLb motif (ID = p6; results for all of the over-represented pFFLb motifs are shown in Supplementary Fig. 12). We also compared motif overlapping detected using half the trials of the same stimulus type and using different stimuli (Supplementary Fig. 8C). Notably, pFFLb motifs were more likely to be composed of the same neurons during the same stimulus type than for different types, indicating that the identities of the neurons within the over-represented motifs change as the stimulus type changes.

Taken together, these results and those in Fig. 2D, indicate that, as the stimulus type changes, the same three-neuron motifs are over- or under-represented in the cortical networks, but the identities of the neurons within those motifs change. This suggests that these specific motifs might have strong functional importance for the cortical microcircuit because even as different stimuli dynamically alter the functional connectivity, they do so in a way that preserves these motif patterns. To further investigate this question, we analyzed the tuning similarity of these motifs. As a control, we compared the tuning profiles of connected neurons that are not within the same pFFLb motifs. We found the signal correlation between pairs of connected neurons within the same pFFLb motif were significantly higher than those not within the same pFFLb motif (Fig. 3C; rank-sum test, one-sided), and neurons within the same pFFLb motif are spatially closer to each other than otherwise (Supplementary Fig. 7A, right; rank-sum test, one-sided). Furthermore, neuron pairs within pFFLb motifs show stronger functional connection strengths and higher CCG Z-scores than other connected neuron pairs (Supplementary Fig. 7A; rank-sum test, one-sided). Thus, the pFFLb motifs tend to consist of functionally-similar neurons. These observations are consistent with previous reports of synaptic connectivity patterns in visual cortex1.

Overall, these analyses indicate that neuron pairs within the over-represented pFFLb motifs tend to be spatially near each other, and to have higher functional similarity compared to other pairs. Coupled with the fact that these pFFLb motifs are preserved across stimuli, this highlights the potential functional importance of these motifs within the cortical microcircuit.

Spatial and functional organization of network modules depends on the stimulus

The adoption of network analysis in the investigation of neural mechanisms underlying visual processing offers more than just the exploration of elementary information processing components (e.g., three-neuron motifs). It opens the door to a comprehensive examination of how extensive neural populations, including modular structure, engage in interactions. Those modules79,80 are thought to impart added robustness81, efficiency82, and functional specialization55 to networks. We thus sought to identify modules within our networks, and to determine how their properties depend on the stimulus presented to the animal.

To achieve this goal, we revised the Louvain method83 to optimize the Modularity estimation from previous work84,85 so as to take into account the signs of the connections in our networks: this modified Louvain method searched for sets of modules with most positive connections inside the same module and negative connections between different modules (see Methods). Thus, the method identifies sets of modules whose neurons are internally correlated and externally anti- or un-correlated. This greedy optimization yields the groupings of neurons into modules by maximizing the score of modified Modularity (see Methods). For comparison, we also identified modules with the original Modularity algorithm that does not take into account the edge signs81. Although our adapted method revealed results qualitatively similar to the original one (Supplementary Fig. 13), the identified module size using our method is relatively smaller, suggesting a finer scale module detection with our method.

Unless otherwise stated, in the rest of this paper Modularity means the modified Modularity for signed module detection. By maximizing the two-dimensional Modularity difference map whose dimensions correspond to resolution parameters for positive and negative links, we determined the optimal resolution parameters that control the scale of identified modular structure so that the empirical network deviates most from the null model15,86 (see Methods; Supplementary Fig. 14A). In light of the potential limitations posed by a fixed resolution parameter, we analyzed multi-resolution module partitioning and found consistent results (Supplementary Fig. 14B–D).

After identifying the best parameters, we applied our module detection algorithm to the observed functional networks from each stimulus type, and compared the results between stimuli. During gratings and natural stimuli, functional networks tend to exhibit stronger modular structures, characterized by larger deviations in Modularity from expectation (Fig. 4A, bottom Z-score, 52.04 ± 5.16; mean ± sem, n = 4 stimulus types over 7 mice). On the contrary, the networks obtained from flashes and in the resting state were less modular (4.18 ± 4.14; mean ± sem, n = 2 stimulus types over 7 mice; p = 5.23 × 10−7, rank-sum test, one-sided).

Fig. 4. Distinct modular structures during different types of visual stimuli.

Fig. 4

A (top) Topological structure of functional connectivity of a mouse during six types of visual stimuli with neurons colored by area. The color of each connection shows its sign with red denoting positive connection and blue representing negative correlation. The community partition is obtained through modified Modularity for signed networks (see Methods). (bottom) We computed the Z-score of Modularity with Signed-pair-preserving model as the reference to show the degree to which functional network has a modular structure. Networks during gratings and natural stimuli show significant modular structure. Error bars represent standard error of the mean and are displayed with mean, n = 7 mice. B We used three measures to reveal the modular structure regarding visual area from different perspectives. Coverage and purity are module-level measures, where the former marks the degree to which the module covers any visual area, while the latter measures the degree to which all neurons in the module are from the same visual area. We computed the average coverage and purity weighted by module size to show the overall properties of the whole functional network (see Methods). Adjusted Rand Index (ARI), a network-level measure, was also used to quantify the difference between module partition and visual areal organization. The weighted average (WA) coverage is 0.375 and 1 (ranges from 0 to 1), WA purity is 0.333 and 1 (ranges from 0 to 1) and ARI is −0.03 and 1 (ranges from −0.5 to 1) for the corresponding two toy examples visualizing the “low” and “high” cases for the measure. C WA coverage, WA purity and ARI during six visual stimuli. In general, there tend to be fewer and larger modules with higher coverage during grating stimuli, whereas we usually find more and smaller modules with higher purity during natural stimuli. As a result, ARI is lower during resting state and flash while higher during grating and natural stimuli. Error bars represent standard error of the mean and are displayed with mean, n = 7 mice.

Anatomically parcellated brain regions are thought to work as natural modules with specialized functions8790. We thus wanted to understand how our functionally-defined modules relate to the anatomically-defined brain regions. To achieve this goal, we analyzed the identified functional modules to understand the extent to which their spatial organization coincided with the anatomically-defined brain regions, and the extent to which that depended on the stimulus. To do this, we computed three measures from the modules for each stimulus (Fig. 4B, left). First, the coverage quantifies the maximum extent to which a given module covers all of the neurons in any single brain region. Second, the purity quantifies the maximum extent to which a given module is contained within any single brain region. These two quantities are computed for each module, and the results in Fig. 4C show their weighted average (averaged over modules, weighted by module size). A more detailed module-by-module analysis is presented in Fig. 5, below. Finally, the adjusted rand index (ARI) quantifies the similarity between how the modules partition the set of neurons, and how the brain regions partition the set of neurons. Intuitively, these measures revealed the properties of modular structure from different perspectives: high coverage means at least one visual area is covered by the module, high purity means that a module consists of neurons from the same visual area, and high ARI means the overall module partitioning highly resembles the areal organization.

Fig. 5. Stronger segregation during natural stimuli.

Fig. 5

A Signal correlation for within-module and otherwise connections. Note that some neurons may not belong to any module, otherwise connections can involve multiple scenarios. *p < 0.05, **p < 0.01, ***p < 0.001, rank-sum test, one-sided, n = 7 mice. Error bars represent 95% confidence interval. Connected neurons partitioned into the same module tend to have higher signal correlations than the rest connected neurons, demonstrating our module partition provides insight into not only the connectivity pattern but also functional similarity to some extent. B Number of modules with normalized size, coverage or purity higher than the threshold. Normalized size is the size of module normalized by the total number of neurons in the network, insets show the plots on a log-log scale. C Number of modules with purity higher than the threshold for each visual area during all visual stimuli. D, E Properties of the modular structure during natural scene and natural movie presentations. We examined four different aspects of the case where neurons from a single visual area are divided into multiple modules (in which they are the dominant area), with signal correlation indicating the functional similarity along with connection probability, positive and negative fractions demonstrating the validity of our module partitioning algorithm. ns p > 0.05, *p < 0.05, **p < 0.01, ***p < 0.001, rank-sum test, one-sided, n = 7 mice. Error bars represent 95% confidence interval. F Distance in degree between centers and overall correlation of receptive fields for connected and disconnected neuron. ns p > 0.05, *p < 0.05, **p < 0.01, ***p < 0.001, rank-sum test, one-sided, n = 7 mice. Error bars represent 95% confidence interval.

These three measures all show variation in the module organization for different stimuli (Fig. 4C). One would usually assume that long-range and inter-areal connections are needed for more demanding tasks91,92. However, for natural images and movies, the modules have a higher propensity to cover only a subset of a brain region than for drifting and static grating stimuli. This is reflected by lower coverage scores and higher purity scores for the natural image and movie networks than for the drifting and static grating networks (Fig. 4C; p = 0.0029, p = 0.0002, rank-sum test, one-sided). Therefore, it appears that enhanced within-areal connections play a beneficial role in visual computation which could be more important in the processing of natural stimuli.

It is important to note that with increasing module size, coverage tends to increase while purity tends to decrease, and the module size does depend on the stimulus (Fig. 5B). As a result, it is important to ask whether the variations in coverage and purity with visual stimuli could be explained simply by stimulus dependence of module size. To address this question, we compared module purity and coverage to module size (Supplementary Fig. 15). Consistently across module sizes, the modules in the flashes stimulus and resting state networks had lower coverage than did the networks for the other stimuli. The network from the flashes stimulus also had consistently lower purity.

To further probe the relationships between module size and coverage or purity, we analyzed the number of modules obtained for each stimulus that were above a given threshold of module size, threshold of module coverage, or threshold of module purity. Repeating this for many threshold values (Fig. 5B), we found that natural images and movies had the largest numbers of high-purity modules even though their numbers of small modules were not appreciably different from the other stimuli. These findings emphasize that the stimulus-dependent module properties we report in Fig. 4C cannot entirely be attributed to stimulus-dependent module sizes.

In general, the similarity between functional module partitioning and the anatomical areal organization is higher during gratings and natural stimuli and lower during resting state and flashes, suggesting that functional connectivity tends to be more constrained by the anatomical structure and more spatially compact during complex and natural stimuli. This is reflected in the lower ARI values for the flashes and spontaneous activity (Fig. 4C; p = 4.0 × 10−7, rank-sum test, one-sided).

Consistent with previous work69,93, functional motifs seem to be more pronounced in more modular networks (Supplementary Fig. 16F), suggesting their shared organizational principles. Similar to motifs, we also tested the functional similarity of nodes within and across modules by measuring the signal correlations of connected neuron pairs. Neuron pairs within the same module had higher signal correlations than did neuron pairs that were not (Fig. 5A), and the probability of any two connected neurons being in the same module also increases with signal correlation (Supplementary Fig. 16A; Cochran–Armitage test, two-sided). These findings were consistent for the 4 visual stimuli for which the signal correlations are well-defined, and were consistent across brain regions with modules assigned to the brain region from which most of their neurons came (Fig. 5D, E). Functional interactions tend to be found between neurons with more similar receptive fields across most scenarios concerning areal and modular structures, although how strongly interactions depend on receptive field similarity varies (Fig. 5F). This shows that functional modules are finer-scale partitions, displaying both the similarity and dissimilarity between anatomical and functional parcellation. These observations emphasize that the modular structure promotes functional specialization55.

Our analyses of the modular organization of the functional networks reveal that the modules tend to contain neurons with similar stimulus tuning, and that their spatial organization and alignment with anatomical brain regions depend on the stimulus type presented to the animal. This emphasizes that a functional module is not strictly the same as an anatomical brain region: the relationship between these concepts depends on the stimulus-defined context.

Discussion

We studied the topology of micro-scale functional networks measured with single-neuron spiking activity in the mouse visual cortex. These data were collected while the mice were exposed to different types of visual stimuli, and we separately analyzed the functional networks observed in the responses to each stimulus type. Thus generated functional networks could differ from the underlying anatomical connectivity, and this disparity warrants caution when interpreting the connectivity graphs. However, our science question, concerning stimulus-dependent interactions between neurons cannot be answered with the standard anatomical connection methods. For this reason, we used functional connectivity measures for this study.

We found that functional networks display stimulus-dependent network properties such as varying density, clustering coefficient and fraction of positive connections. Furthermore, we provide evidence that the distribution of low-order connectivity patterns (motifs with 2 or 3 nodes) remains stable, characterized by over-representation of a specific group of 3-neuron motifs, pFFLb motifs. This over-representation was preserved across the wide range of stimuli we investigated. Notably, while these motifs were over-represented in all cases, the constituent neurons within those motifs changed. Finally, we observed that the module-level network architecture depends significantly on the stimulus type.

The consistent over-representation of pFFLb motifs suggests that they are key information-processing components of neural circuits. While these motifs were over-represented for all stimuli, the identity and areal distribution of neurons constituting the pFFLb motifs differed between stimuli. Thus it is the three-neuron patterns rather than the triadic interactions of specific neurons that are preserved. This observation suggests that an important computational role might arise at the motif level9498, where neurons can dynamically reorganize to form these relevant structures. These local computations, organized by motifs, could remain robust to changes like the loss of individual neurons because other neurons could be recruited into the motifs to replace any that are lost. For this reason, motif-level computational organization could provide substantial robustness to cortical computation.

The abundance of FFL motif has been observed in numerous types of networks including gene regulatory networks70, transportation networks99, engineered networks67 and neuronal networks1,67,99. Motif ID = p6 (pFFL) is proven to be a sign-sensitive filter that responds only to persistent stimuli in transcriptional regulation networks70 and multi-input FFL generalization is found to store memory as well as reject transient input fluctuations in neuronal networks52. For anatomical networks of neurons, there have been modeling work showing that certain pFFLb motifs (p9, p10) can function as long-term memories of the input, thus playing an important role in many cognitive tasks78. Therefore, the pFFLb motifs that we found to be consistently over-represented in cortical functional networks may have important functional roles in cortical computation.

On the global scale, however, natural stimuli tend to drive networks into more modular structures with stronger segregation and stronger agreement between structural and functional parcellation. Although the extensive inter-areal connections and modules evoked by gratings could result from the intrinsic spatial distribution of the grating stimuli, the possibility of influence from oscillatory patterns (Supplementary Fig. 17) has been ruled out. In comparison, the functional modules with more spatially segregated structures evoked by natural stimuli could play an important role in the processing of the visual input. It is noteworthy that, major functional modules observed when the animal was viewing natural scenes and movies are highly overlapping at all spatial scales with almost the same neurons (Supplementary Fig. 14B). These probably arise from the common subtasks required by the visual processing of similar stimuli. One advantage of having shared modular components is that it allows a faster adaptation and possibly a lower switching cost of functional networks to various tasks93. This reduction in functional reorganization costs could be especially important given our observation that different neurons are organized into the over-represented pFFLb motifs in the presence of different stimuli.

Anatomical structure has been known to stay relatively stable given different types of sensory inputs100. In comparison, functional connectivity changes in such a fast and dramatic manner that some even try to model its temporality within a single trial101. There are various reasons for this rapid functional adaptation, which could be a change of task3639, perceptual states102, visual stimuli24,25,103, etc. However, most prior studies were either restricted to the primary visual cortex, or to voxel-level recordings obtained through fMRI, or both. It thus remains unclear whether the functional interactions on a single-neuron scale across multiple cortical regions are also dynamically adapted to the visual inputs. One major aim of our study was to fill this knowledge gap. By studying interneuronal functional connections, our work could help improve our understanding of neuron-to-neuron connections (e.g., at the synaptic scale). In contrast, studies of voxel-scale functional connectivity based on fMRI data might be less informative about these finer-scale interactions.

One of the major challenges of studying functional connectivity lies in the existence of negative correlations and anti-correlated patterns: there is a lack of strong theoretical tools for analyzing networks with both positive and negative edges104. While many studies on functional connectivity disregard inhibition and only focus on positive connections for simplicity, inhibitory connections that could display as negative connections play a crucial functional role in visual processing105,106. This highlights the need for a network analysis framework that possesses the ability to handle both positive and negative edges. We address this problem by adopting and modifying motif and module detection methods for signed networks, and used these methods to investigate how (signed) functional networks vary on local and global scales. The inclusion of edge sign in motif analysis enables us to further distinguish motifs, since the same unsigned connectivity could correspond to different functions depending on the edge signs70. The definition of functional modules can be subjective regarding whether to keep negative connections inside or between modules. Nonetheless, we showed that even though qualitatively similar conclusions can be drawn without distinguishing functional inhibition from excitation (Supplementary Fig. 13), ignoring edge sign (as in prior studies) could lead to a less detailed understanding of the exact pattern of functional segregation and specialization.

While our detailed methods thus provide a more comprehensive analysis of how functional connectivity flexibly adapts to the statistics of visual input, we recognize some limitations to our analyses. First, we do not distinguish neurons according to their cell types. This limits our ability to relate our functional connectivity results to the growing literature on microcircuit architectures. In addition, due to incomplete recording, we observe only a subset of the neurons in each brain area. Correlation-based network inference can potentially lead to false direct-edge identification via high-order connections or joint modulation from latent variables (unobserved units). These limitations are inherent to single-unit neural activity-based construction of functional connectivity, and not just to our study. Nevertheless, we do not believe that these common limitations constitute serious flaws in our analysis. First, we are not trying to find functional networks that topologically resemble the anatomical network, in which case the incomplete recording issue would be quite detrimental, or effective/causal networks that reflect direct influence between neurons where latent variables introduce a significant bias to the identified connectivity. Instead, our focus is on the alteration of inter-neuronal interaction patterns to different visual stimuli measured by correlated activities. These interactions can be identified even in incomplete recordings. Second, incomplete observation might explain the presence of nonconforming edges in some of our analyses, such as the presence of both positive and negative edges emanating from a single neuron. At first glance, these neurons are at odds with Dale’s principle, which suggests that such bivalent neurons are very uncommon in the neocortex. However, given the incomplete recordings, there could be unobserved inhibitory neurons that mediate the effective inhibitory impact of an excitatory neuron on some other neurons in the circuit. Hence, the potential incorporation of indirect interactions within functional connections enables the examination of effective interaction between neurons, even with unrecorded units. Third, despite the demonstrated efficacy of various methods to correct for latent variables in the construction of causal graphs107110, the applicability of these models in real-world analyses, particularly in the absence of ground truth connectivity, remains uncertain. It is imperative to underscore that, our study primarily focuses on functional connectivity, which reveals correlations instead of causality between neural activities under different stimulus conditions111. For this reason, without presuming direct mechanistic interactions, jitter-corrected-CCG-based functional connectivity that has been proven effective in capturing the direction of information flow30,31 is not significantly impacted by latent variables.

Additional limitations of our study arise from experimental constraints and the nature of the Neuropixels dataset collected from extracellular electrophysiology probes. Kilosort2 was used to identify spike times and assign spikes to individuals112, however, no current spike sorting algorithm can ensure a completely accurate assignment of observed spikes to individual neurons. This means certain nodes in our network could correspond to more than one neuron, or that there could be multiple nodes corresponding to the same neuron113. Finally, the limited set of visual stimuli used in our experiments could introduce bias into our analysis since we do not have multiple different sets of stimuli within the same stimulus type. This limitation prevents us from comparing the functional connectivity driven by distinct stimuli within the same category (i.e., more different clips of natural movies). On the other hand, we use a relatively wide range of natural image and natural movie stimuli, and sampled multiple stimulus types of varying complexity. While these laboratory conditions are much more controlled than natural viewing conditions, we nevertheless have determined functional connectivity under a wide range of stimulus conditions.

On the timescale of sensory processing, neuronal networks have relatively fixed anatomical connectivity. Their functional connectivity, however, can and does vary quite substantially. Our work revealed striking patterns to this functional reorganization. These patterns suggest potentially important principles governing cortical computation, such as the dynamical organization of groups of neurons into feedforward loop motifs, and the adjustment of network modularity based on stimulus complexity. Beyond their relevance for basic neuroscience, these findings may provide guidance for how to engineer dynamically robust information processing systems.

Methods

Dataset

We analyzed the Neuropixels dataset from Allen Institute30. The Neuropixels project uses high-density extracellular electrophysiology probes to record spikes from multiple regions in the mouse brain. Data used to construct functional networks are recordings of the neural activity by 6 Neuropixels probes in 6 visual cortical areas (V1, LM, RL, AL, PM, AM) from 7 mice while the mice passively viewed a visual stimulus set that contains 6 types of visual stimuli with multiple repeats: gray screen (simulation for resting-state activity), flashes, drifting gratings, static gratings, natural scenes and natural movies. On average, there are 668 ± 131 units simultaneously recorded for each mouse. In order to make a fair comparison across different visual stimuli, only neurons with a firing rate of at least 2 Hz during all stimuli are included in our analysis, thus the number of neurons (size of the functional network) is the same for each mouse given different stimuli. As a result, there are 176 ± 44 units on average for each mouse.

Cross-correlogram and significant functional connection

Functional connectivity is measured through Cross-correlograms (CCGs)114. For each stimulus type, the average CCGs across all stimulus presentations is calculated. In order to focus on the change in connectivity driven by different stimulus types, we dismissed stimulus conditions and used all presentations as trials. CCG for lagged correlation from neurons A to B is defined as

CCGAB(τ)=1Mi=1Mt=1NxAi(t)xBi(t+τ)θ(τ)λAλB 1

where M is the number of trials, N is the number of time bins, xAi and xBi are the spike trains for neuron A and neuron B, τ ≥ 0 is the time lag between the spike trains, θ(τ) = N − τ represents a triangle function that corrects for the overlap time bins, λA and λB are the mean firing rates for the two neurons. It is worth noting that we only allow for non-negative time lag for the sake of bidirectional connections. We used the jitter correction method to remove slow temporal correlations115. The spike trains are split into short jitter windows with equal size and the spike-jitter method perturbs the spike timing while maintaining the number of spikes within each jitter window to disrupt fast-time correlations. Jitter correction has been widely used to eliminate the shared trial-to-trial variability on a slower time scale116. The jitter-corrected CCG is obtained as the difference between CCGs of the original and jittered spike trains

CCGjc=CCGCCGjittered 2

The size of the jitter window is defined as 25 ms. Apart from using ‘sharp peaks’ to define significant functional connections, we also included ‘sharp intervals’ to take into consideration the polysynaptic connections between neuron pairs with potentially multiple time lags. Specifically, for a given duration D ∈ [1, τmax + 1], where τmax = 12 ms similar to the 13 ms window in previous work31, the set of moving average CCG is obtained by

C(D)=1Dτ=t1t1+D1CCGjc(τ),t1[0,TD+1] 3

where T is the total length of spike trains. Therefore, there is a positive connection if

1Dτ=t0t0+D1CCGjc(τ)>μC(D)+nσC(D) 4

and a negative connection if

1Dτ=t0t0+D1CCGjc(τ)<μC(D)nσC(D) 5

where t0 ∈ [0, τmax − D + 1] is the starting time lag of the ‘sharp peak/interval’, μC(D), σC(D) are the mean and standard deviation of C(D), n = 4 denotes the 4-fold significance level in our experiment. It is straightforward that D = 1 indicates a ‘sharp peak’ while D > 1 denotes a ‘sharp interval’. If equation (4) or (5) is true on multiple durations D ∈ {D1, D2, ⋯  , Ds}, D1 < D2 < ⋯ < Ds, we assume the smallest duration D = D1 since it always leads to the highest significance level.

CCG peaks with zero time lag are explained by dynamical relaying mechanisms instead of common drive117,118, thus are usually treated as bidirectional connections42. Considering our CCG method can detect bidirectional connections with non-zero peaks, for connections with zero time lag, we retain the primary direction of communication, defined as the direction with a higher significance level. The alternative direction retains its significance when a non-zero significant peak or interval is observed.

Therefore, each directed connection was characterized by its lag, the duration of the significant interval in the CCG, and its significance value. Lag τ is the delay between spike trains of source neuron and target neuron. The duration D measures how long the significant peak/interval lasts, and the connection significance signals the Z-score of the ‘sharp peak/interval’. Lags τ of across-area connections are higher than within-area connections (Supplementary Fig. 2C), which is as expected since it takes more time for a signal to travel between areas than within an area.

It has been shown that a sufficiently large number of spikes for both neurons are necessary to make the detection reliable119, which is directly presented by the CCG. To eliminate the bias brought by insufficient spikes, we used normalized entropy, defined as the Shannon entropy of the CCG divided by the maximum of entropy, to keep only reliable connections where both neurons have enough spikes. We used a threshold of 0.9 on normalized entropy, and most removed connections are found during flashes and are due to the shortage of trials.

Reference model and signed motif analysis

Since functional networks are constructed as signed networks, signed motif analysis needs to be defined. Similar to unsigned motif detection, to examine the statistical significance of signed n-neuron motifs in the networks, we generated random networks using various reference models as the baseline and conducted a comparative analysis of motif frequency between the empirical network and random networks.

Three types of commonly used reference models are adopted in this work: Erdős–Rényi model, Degree-preserving model and Pair-preserving model. However, they are all defined on unsigned networks. In order to tailor these models for analysis in the context of signed networks, we randomly assigned original edge signs to reference networks randomized using Erdős–Rényi model, Degree-preserving model and Pair-preserving model. Furthermore, we defined the Signed-pair-preserving model by preserving the edge signs for each neuron pair in the Pair-preserving model during shuffling (Fig. 2A). Therefore, surrogate networks generated using all four reference models have the same number of positive/negative connections as the real network.

Table 1 lists the comparison between all four reference models. Erdős–Rényi model randomly shuffles connections while preserving network size, density and weight distribution77, Degree-preserving model generates random networks while preserving size, density, weight distribution and degree distribution120, Pair-preserving model randomizes the network while keeping size, density, weight distribution, degree distribution and neuron pair distribution67 while the Signed-pair-preserving model preserves the signed pair distribution (Fig. 2A) in addition to the first three properties. Furthermore, we also preserved the discretized distribution of anatomical distance between neurons (Supplementary Fig. 5) to test whether spatial distribution has an impact on the findings. However, we used Signed-pair-preserving model for signed motif analysis due to limited data of spatial information. For all analyses including a reference model, we randomly generated 200 surrogate networks.

Table 1.

Reference models

Reference model size & density & weight degree distribution pair distribution signed pair distribution
Erdős–Rényi model ×  ×  × 
Degree-preserving model ×  × 
Pair-preserving model × 
Signed-pair-preserving model

For two-neuron motif analysis, we adopted Erdős–Rényi model as the reference model and computed the relative count for each type of two-neuron connection by dividing the count of the empirical network and the average count of surrogate networks. For simplicity, we only focused on three-neuron subnetworks apart from two-neuron subnetworks during motif analysis. We used the Z-score of intensity compared with reference models to determine motif significance76. The intensity of a certain motif M is defined as the summation over the intensities of all subgraphs g that have the structure of M

I(M)=gMI(g) 6

where the intensity of a certain subgraph is defined as the geometric mean of all its connection strengths

I(g)=ijlgwij1lg 7

where lg denotes the set of connections in g and wij is the strength of the connection from neuron i to j. Then the Z-score of intensity for motif M can be computed as

ZM=IMiMiM2iM2 8

where iM is the total intensity of motif M in one realization of the reference model. To reduce noise from individual mice, we removed outliers of ZM for each stimulus type from our analysis based on a threshold of 2 standard deviations.

Signed module detection

The original Modularity used to detect community structure for directed networks121 is defined as Q^=1mij[Aijkiinkjoutm]δ(σi,σj), where A is the adjacency matrix of the network, m is the number of links, kin, kout represent the in-degree and out-degree, respectively. δ is the Kronecker delta function and σi denotes the community label that node i is assigned to. In the presence of negative links, we denote Aij+=Aij if Aij ≥ 0 and zero otherwise, Aij=Aij if Aij ≤ 0 and zero otherwise, so that A = A+ − A. In order to cluster nodes towards social balance, frustration metric 122, defined as ij(λAij(1λ)Aij+)δ(σi,σj), has been proposed. However, neither is suitable for partitioning signed networks. In this work we adopted modified Modularity for community detection of the signed, weighted and directed CCG network. Modified Modularity of a certain partition σ is defined as the weighted combination of the positive and negative parts84,85

Q(σ)=m+m++mQ+(σ)mm++mQ(σ) 9

where

Q+(σ)=1m+ij(Aij+γ+pij+)δ(σi,σj) 10
Q(σ)=1mij(Aijγpij)δ(σi,σj) 11

γ+ and γ are the resolution parameters, m+ and m are the number of positive and negative connections, respectively, p+ and p are the connection probabilities for positive and negative links, respectively. Here, we take into consideration degree distribution by defining the probabilities as pij±=kiout±kjin±m±, where kiout± is the positive/negative out-degree of neuron i and kjin± is the positive/negative in-degree of neuron j. Therefore, equation (9) can be rewritten as

Q(σ)=1m++mij[Aij(γ+pij+γpij)]δ(σi,σj) 12

The Louvain method is a module (community) detection algorithm for partitioning networks into groups of nodes with dense connections within groups and sparse connections between groups83. The algorithm uses the original Modularity Q^ as a quality function to optimize the partitioning of the network σ. The Louvain method operates through a series of iterative steps that merge neighboring modules to maximize the Modularity gain until a locally optimal partition is reached. The algorithm uses a bottom-up approach, starting from single-node modules, and iteratively merges modules to form larger ones. To take into consideration edge signs, we revised the quality function in the Louvain method from original Modularity Q^ to modified Modularity Q. Therefore, the modified Louvain method aims to find an optimal partition of nodes such that positive connections are placed within modules while negative connections are between modules.

In order to determine the resolution parameters for module analysis, we obtained a Modularity difference heatmap by varying γ+ and γ and computing the difference between Modularities of empirical and surrogate networks generated by the Signed-pair-preserving model, then looked for the γ+ and γ that maximize the difference15. This way we obtained the modular partitioning that is least random. We used the Z-score of Modularity to show how modular a functional network is through comparison with a reference model (Signed-pair-preserving model). The Z-score of Modularity is defined as

ZQ=Qqq2q2 13

where q is the Modularity in one realization of the reference model. Only modules with a size of at least four neurons are included in subsequent analysis to eliminate the noise influence of isolated single neurons, pairs and triplets. Note that we included connection strength in both motif and module analyses. The CCG peak values represent connection strengths, i.e., we use absolute sum of positive/negative connection weights instead of number of positive/negative connections and the positive/negative degree of a neuron is replaced by total positive/negative connection weights. Unless otherwise stated, Q represents the modified Modularity for signed networks. When visualizing modular structure, the location of each node is determined by applying the Fruchterman-Reingold Layout recursively on the hypergraph and then the subgraph of each community (python package Netgraph).

Analysis of modular structure

To measure the fundamental properties of modular structure, we used (weighted average) coverage, (weighted average) purity and Adjusted Rand Index (ARI) to show how neurons from different visual areas are clustered together. Coverage, defined as maxjMiAjAj and purity, defined as maxjMiAjMi, are module-level metrics, while their weighted averages (WA) with module size as weight are network-level metrics. The WA coverage is

imaxjMiMiAjAjiMi 14

whereas the WA purity is

imaxjMiAjiMi 15

For each module partition, we also used Adjusted Rand Index (ARI) to measure its similarity to areal organization for each network. Based on the contingency Table 2, ARI is defined as

ARI=ijnij2iai2jbj2n212iai2+jbj2iai2jbj2n2 16

Table 2.

Contingency table for module partition M={M1,M2,,Mr} and visual areal organization A={A1,A2,,As}

A1 A2 ⋯   As sums
M1 n11 n12 ⋯   n1s a1
M2 n21 n22 ⋯   n2s a2
⋮  ⋮  ⋮  ⋮  ⋮ 
Mr nr1 nr2 ⋯   nrs ar
sums b1 b2 ⋯   bs

Mi denotes the set of neurons in the i-th module while Aj represents the set of neurons in the j-th visual area. Since we only focus on six cortical areas, thus s = 6. Each entry nij denotes the number of neurons that are assigned into module Mi are from visual area Aj: nij=MiAj.

Multi-resolution module partition

To reduce noise in module partition, we focused on the most active neurons that have at least 1 connection during all stimuli when examining how module partition changes with resolution parameters. Since the modified Louvain method is stochastic, 200 independent runs were carried out for partitioning any empirical network. To compare module partitioning results across resolution parameters, we combined multiple partitioning results based on a voting mechanism that keeps frequent modules. In our algorithm, we first recorded the module assignment for each node during each run of the modified Louvain algorithm, initially labeling all nodes as unassigned. For the unassigned nodes, we then updated votes for their modules based on module appearances across all runs. Subsequently, we assigned each unassigned node to the module with the most votes. The last two steps were iterated until all nodes were assigned to a module.

Due to the significantly greater abundance of positive connections compared to negative connections, the parameter γ+ exerts a substantially more pronounced effect on the outcomes of module partitioning than γ. Consequently, we limited the range of variation for γ while placing greater emphasis on the alignment and comparison of module identity with γ+ across a broader range of values.

To compare module partitions across multiple resolutions, we assigned module IDs to modules across resolutions based on their hierarchical structure and produced a visualization of the resulting heatmap. To accomplish this, we started from the highest resolution, and traversed through the resolutions in reverse order. For the highest resolution, we assigned each module a unique ID.

Then for each module under subsequent resolutions, we identified its largest submodule from the previous resolution and determined that its ID should be inherited from the submodule. To achieve this, we considered the modules from the previous resolution and calculated their overlaps with the current module. We selected the submodule(s) with the maximum overlap and retrieved the corresponding ID(s) assigned to it. These ID(s) were assigned to the current module, ensuring consistency and preserving the hierarchical relationship across resolutions.

Once the module IDs were assigned to the modules for all resolutions and stimuli, we sorted the nodes within each area based on their combined similarity across all stimuli to ensure an intuitive visualization. Specifically, we employed a two-opt optimization algorithm to determine an optimal node order that maximizes the similarity between module IDs of adjacent nodes across resolutions. The object is to minimize the hamming distance between 10 adjacent nodes, making neighboring nodes more likely to have similar module IDs across resolutions.

Statistical analysis

Since module partitioning and the generation of surrogate networks are both stochastic, each analysis involving detection of modular structure or generation of surrogate networks is performed with 200 independent runs. We adopt Cochran–Armitage trend test to assess the association between categorical variables and Chi-squared test for comparing the distribution of categorical variables. Wilcoxon rank-sum test is used to compare population mean of two groups. Kolmogorov–Smirnov test is used to test whether a distribution is the largest among a set of distributions. Benjamini/Hochberg method is used to correct p value for false discovery rate in multiple tests.

We use the modified asymptotic (MA) test for comparing correlations between the firing rate of a neuron and its number of within-area/across-area connections123. Since the two correlations in the test involve a common variable (firing rate), a test for overlapping correlations is adopted. Suppose r1, r2 and r3 are the correlations between firing rate and within-area connections, firing rate and across-area connections, and within-area and across-area connections, respectively. The MA method defines the confidence limits (L, U) for the correlation difference r1 − r2 as

L=r1r2(r1l1)2+(u2r2)22corr^(r1,r2)(r1l1)(u2r2) 17
U=r1r2+(u1r1)2+(r2l2)22corr^(r1,r2)(u1r1)(r2l2) 18

where l, u are the confidence limits for single correlation r with a significance level α

l=rzα2var^(r) 19
u=r+zα2var^(r) 20

where var^(r)=(1r2)2n and n is the sample size. The correlation between the two correlations corr^(r1,r2) can be estimated by

corr^(r1,r2)=cov^(r1,r2)var^(r1)var^(r2) 21

where covariance cov^(r1,r2) between the two correlations can be obtained through

cov^(r1,r2)=(r312r1r2)(1r12r22r32)+r33n 22

Therefore, if L(r1, r2) > 0, r1 is considered significantly higher than r2 with significance level α; on the contrary, if L(r2, r1) > 0, r2 is considered significantly higher than r1 with significance level α.

Reporting summary

Further information on research design is available in the Nature Portfolio Reporting Summary linked to this article.

Supplementary information

Peer Review File (20.6MB, pdf)
Reporting Summary (1.5MB, pdf)

Source data

Source Data (11.3MB, xlsx)

Acknowledgements

This work was supported by funding from the Tsinghua-Peking Center for Life Sciences, National Natural Science Foundation of China (92370116) and Tsinghua University Dushi Program (2023Z11DSZ001) to X.J., a Discovery Grant from the Natural Sciences and Engineering Research Council of Canada (RGPIN-2019-06379) and a Canada Research Chair grant to J.Z., and the National Eye Institute of the National Institutes of Health under Award Number R00 EY030840 and a Alfred P. Sloan Research Fellowship in Neuroscience to H.C. The content is solely the responsibility of the authors and does not necessarily represent the official views of the National Institutes of Health. We thank Yu Hu, Joshua H. Siegle, Eric Shea-Brown, and Stefan Mihalas for helpful and insightful comments on the manuscript.

Author contributions

Conceptualization: D.T., J.Z., X.J., and H.C.; Methodology and software, visualization, and formal analysis: D.T.; Investigation: D.T., J.Z., X.J., and H.C.; Writing: D.T., J.Z., X.J., and H.C.; Supervision: J.Z., X.J., and H.C.

Peer review

Peer review information

Nature Communications thanks the anonymous reviewer(s) for their contribution to the peer review of this work. A peer review file is available.

Data availability

All the data analyzed in this manuscript is part of the Allen Brain Observatory introduced in ref. 30. The raw data used to generate main text figures is available for download in Neurodata Without Borders (NWB) format via the AllenSDK. Example Jupyter Notebooks for accessing the data can be found at https://allensdk.readthedocs.io/en/latest/visual_coding_neuropixels.html. Source data for main text figures are provided as a Source Data file. Source data are provided with this paper.

Code availability

Code for analyses in the manuscript and generation of figures are available from the repository: https://github.com/HChoiLab/functional-network.

Competing interests

The authors declare no competing interests.

Footnotes

Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

These authors contributed equally: Joel Zylberberg, Xiaoxuan Jia, Hannah Choi.

Contributor Information

Disheng Tang, Email: dishengtang3@gmail.com.

Joel Zylberberg, Email: joelzy@yorku.ca.

Xiaoxuan Jia, Email: jxiaoxuan@gmail.com.

Hannah Choi, Email: hannahch@gatech.edu.

Supplementary information

The online version contains supplementary material available at 10.1038/s41467-024-49704-0.

References

  • 1.Song S, Sjöström PJ, Reigl M, Nelson S, Chklovskii DB. Highly nonrandom features of synaptic connectivity in local cortical circuits. PLoS Biol. 2005;3:e68. doi: 10.1371/journal.pbio.0030068. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 2.Ko H, et al. Functional specificity of local synaptic connections in neocortical networks. Nature. 2011;473:87–91. doi: 10.1038/nature09880. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 3.Ko H, et al. The emergence of functional microcircuits in visual cortex. Nature. 2013;496:96–100. doi: 10.1038/nature12015. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 4.MICrONS Consortium, et al. Functional connectomics spanning multiple areas of mouse visual cortex. Preprint at bioRxiv10.1101/2021.07.28.454025 (2021).
  • 5.Oh SW, et al. A mesoscale connectome of the mouse brain. Nature. 2014;508:207–214. doi: 10.1038/nature13186. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 6.Knox JE, et al. High-resolution data-driven model of the mouse connectome. Netw. Neurosci. 2018;3:217–236. doi: 10.1162/netn_a_00066. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 7.Hermundstad AM, et al. Structural foundations of resting-state and task-based functional connectivity in the human brain. Proc. Natl. Acad. Sci. 2013;110:6169–6174. doi: 10.1073/pnas.1219562110. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 8.Hansen EC, Battaglia D, Spiegler A, Deco G, Jirsa VK. Functional connectivity dynamics: Modeling the switching behavior of the resting state. NeuroImage. 2015;105:525–535. doi: 10.1016/j.neuroimage.2014.11.001. [DOI] [PubMed] [Google Scholar]
  • 9.Rubinov M, Sporns O. Complex network measures of brain connectivity: uses and interpretations. NeuroImage. 2010;52:1059–1069. doi: 10.1016/j.neuroimage.2009.10.003. [DOI] [PubMed] [Google Scholar]
  • 10.Bullmore E, Sporns O. Complex brain networks: graph theoretical analysis of structural and functional systems. Nat. Rev. Neurosci. 2009;10:186–198. doi: 10.1038/nrn2575. [DOI] [PubMed] [Google Scholar]
  • 11.Park H-J, Friston K. Structural and functional brain networks: from connections to cognition. Science. 2013;342:1238411. doi: 10.1126/science.1238411. [DOI] [PubMed] [Google Scholar]
  • 12.Hermes D, Miller K, Wandell B, Winawer J. Stimulus dependence of gamma oscillations in human visual cortex. Cereb. Cortex. 2015;25:2951–2959. doi: 10.1093/cercor/bhu091. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 13.Ruff DA, Cohen MR. Stimulus dependence of correlated variability across cortical areas. J. Neurosci. 2016;36:7546–7556. doi: 10.1523/JNEUROSCI.0504-16.2016. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 14.Schneider-Mizell, C. M. et al. Chandelier cell anatomy and function suggest a variably distributed but common signal.Preprint at bioRxiv10.1101/2020.03.31.018952 (2020).
  • 15.Harris JA, et al. Hierarchical organization of cortical and thalamic connectivity. Nature. 2019;575:195–202. doi: 10.1038/s41586-019-1716-z. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 16.Tang E, et al. Developmental increases in white matter network controllability support a growing diversity of brain dynamics. Nat. Commun. 2017;8:1252. doi: 10.1038/s41467-017-01254-4. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 17.Bassett DS, Bullmore ET. Small-world brain networks revisited. Neuroscientist. 2017;23:499–516. doi: 10.1177/1073858416667720. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 18.Choi H, Mihalas S. Synchronization dependent on spatial structures of a mesoscopic whole-brain network. PLOS Comput. Biol. 2019;15:e1006978. doi: 10.1371/journal.pcbi.1006978. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 19.Honey CJ, Kötter R, Breakspear M, Sporns O. Network structure of cerebral cortex shapes functional connectivity on multiple time scales. Proc. Natl. Acad. Sci. 2007;104:10240–10245. doi: 10.1073/pnas.0701519104. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 20.Honey CJ, et al. Predicting human resting-state functional connectivity from structural connectivity. Proc. Natl. Acad. Sci. 2009;106:2035–2040. doi: 10.1073/pnas.0811168106. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 21.Ding, Z. et al. Functional connectomics reveals general wiring rule in mouse visual cortex. Preprint at bioRxiv10.1101/2023.03.13.531369 (2023).
  • 22.Fiser J, Chiu C, Weliky M. Small modulation of ongoing cortical dynamics by sensory input during natural vision. Nature. 2004;431:573–578. doi: 10.1038/nature02907. [DOI] [PubMed] [Google Scholar]
  • 23.Kohn A, Smith MA. Stimulus dependence of neuronal correlation in primary visual cortex of the macaque. J. Neurosci. 2005;25:3661–3673. doi: 10.1523/JNEUROSCI.5106-04.2005. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 24.Martin KA, Schröder S. Functional heterogeneity in neighboring neurons of cat primary visual cortex in response to both artificial and natural stimuli. J. Neurosci. 2013;33:7325–7344. doi: 10.1523/JNEUROSCI.4071-12.2013. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 25.Berkes P, Orbán G, Lengyel M, Fiser J. Spontaneous cortical activity reveals hallmarks of an optimal internal model of the environment. Science. 2011;331:83–87. doi: 10.1126/science.1195870. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 26.Okun M, et al. Diverse coupling of neurons to populations in sensory cortex. Nature. 2015;521:511–515. doi: 10.1038/nature14273. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 27.Lin I-C, Okun M, Carandini M, Harris KD. The nature of shared cortical variability. Neuron. 2015;87:644–656. doi: 10.1016/j.neuron.2015.06.035. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 28.Franke F, et al. Structures of neural correlation and how they favor coding. Neuron. 2016;89:409–422. doi: 10.1016/j.neuron.2015.12.037. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 29.Bányai M, et al. Stimulus complexity shapes response correlations in primary visual cortex. Proc. Natl Acad. Sci. 2019;116:2723–2732. doi: 10.1073/pnas.1816766116. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 30.Siegle JH, et al. Survey of spiking in the mouse visual system reveals functional hierarchy. Nature. 2021;592:86–92. doi: 10.1038/s41586-020-03171-x. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 31.Jia X, et al. Multi-regional module-based signal transmission in mouse visual cortex. Neuron. 2022;110:1585–1598. doi: 10.1016/j.neuron.2022.01.027. [DOI] [PubMed] [Google Scholar]
  • 32.Gabard-Durnam LJ, et al. Stimulus-elicited connectivity influences resting-state connectivity years later in human development: a prospective study. J. Neurosci. 2016;36:4771–4784. doi: 10.1523/JNEUROSCI.0598-16.2016. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 33.van de Ven VG, Formisano E, Prvulovic D, Roeder CH, Linden DE. Functional connectivity as revealed by spatial independent component analysis of fMRI measurements during rest. Hum. Brain Mapp. 2004;22:165–178. doi: 10.1002/hbm.20022. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 34.Krienen FM, Yeo BT, Buckner RL. Reconfigurable task-dependent functional coupling modes cluster around a core functional architecture. Philos. Trans. R. Soc. B Biol. Sci. 2014;369:20130526. doi: 10.1098/rstb.2013.0526. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 35.Genç E, Schölvinck ML, Bergmann J, Singer W, Kohler A. Functional connectivity patterns of visual cortex reflect its anatomical organization. Cereb. Cortex. 2016;26:3719–3731. doi: 10.1093/cercor/bhv175. [DOI] [PubMed] [Google Scholar]
  • 36.Sun FT, Miller LM, D’esposito M. Measuring interregional functional connectivity using coherence and partial coherence analyses of fMRI data. NeuroImage. 2004;21:647–658. doi: 10.1016/j.neuroimage.2003.09.056. [DOI] [PubMed] [Google Scholar]
  • 37.Rogers BP, Morgan VL, Newton AT, Gore JC. Assessing functional connectivity in the human brain by fMRI. Magn. Reson. Imaging. 2007;25:1347–1357. doi: 10.1016/j.mri.2007.03.007. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 38.Cole MW, Bassett DS, Power JD, Braver TS, Petersen SE. Intrinsic and task-evoked network architectures of the human brain. Neuron. 2014;83:238–251. doi: 10.1016/j.neuron.2014.05.014. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 39.Gonzalez-Castillo J, Bandettini PA. Task-based dynamic functional connectivity: recent findings and open questions. NeuroImage. 2018;180:526–533. doi: 10.1016/j.neuroimage.2017.08.006. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 40.Lynch LK, et al. Task-evoked functional connectivity does not explain functional connectivity differences between rest and task conditions. Hum. Brain Mapp. 2018;39:4939–4948. doi: 10.1002/hbm.24335. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 41.Frien A, Eckhorn R. Functional coupling shows stronger stimulus dependency for fast oscillations than for low-frequency components in striate cortex of awake monkey. Eur. J. Neurosci. 2000;12:1466–1478. doi: 10.1046/j.1460-9568.2000.00026.x. [DOI] [PubMed] [Google Scholar]
  • 42.Dann B, Michaels JA, Schaffelhofer S, Scherberger H. Uniting functional network topology and oscillations in the fronto-parietal single unit network of behaving primates. Elife. 2016;5:e15719. doi: 10.7554/eLife.15719. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 43.Hofer SB, et al. Differential connectivity and response dynamics of excitatory and inhibitory neurons in visual cortex. Nat. Neurosci. 2011;14:1045–1052. doi: 10.1038/nn.2876. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 44.Nauhaus I, Busse L, Carandini M, Ringach DL. Stimulus contrast modulates functional connectivity in visual cortex. Nat. Neurosci. 2009;12:70–76. doi: 10.1038/nn.2232. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 45.Berger D, Borgelt C, Louis S, Morrison A, Grün S. Efficient identification of assembly neurons within massively parallel spike trains. Comput. Intell. Neurosci. 2010;2010:1–18. doi: 10.1155/2010/698751. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 46.Humphries MD. Dynamical networks: finding, measuring, and tracking neural population activity using network science. Netw. Neurosci. 2017;1:324–338. doi: 10.1162/NETN_a_00020. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 47.Yu S, Huang D, Singer W, Nikolić D. A small world of neuronal synchrony. Cereb. Cortex. 2008;18:2891–2901. doi: 10.1093/cercor/bhn047. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 48.Gerhard F, Pipa G, Lima B, Neuenschwander S, Gerstner W. Extraction of network topology from multi-electrode recordings: is there a small-world effect? Front. Comput. Neurosci. 2011;5:4. doi: 10.3389/fncom.2011.00004. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 49.Nigam S, et al. Rich-club organization in effective connectivity among cortical neurons. J. Neurosci. 2016;36:670–684. doi: 10.1523/JNEUROSCI.2177-15.2016. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 50.Fujisawa S, Amarasingham A, Harrison MT, Buzsáki G. Behavior-dependent short-term assembly dynamics in the medial prefrontal cortex. Nat. Neurosci. 2008;11:823–833. doi: 10.1038/nn.2134. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 51.Stringer C, Pachitariu M, Steinmetz N, Carandini M, Harris KD. High-dimensional geometry of population responses in visual cortex. Nature. 2019;571:361–365. doi: 10.1038/s41586-019-1346-5. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 52.Kashtan N, Itzkovitz S, Milo R, Alon U. Topological generalizations of network motifs. Phys. Rev. E. 2004;70:031909. doi: 10.1103/PhysRevE.70.031909. [DOI] [PubMed] [Google Scholar]
  • 53.Sakata S, Komatsu Y, Yamamori T. Local design principles of mammalian cortical networks. Neurosci. Res. 2005;51:309–315. doi: 10.1016/j.neures.2004.11.004. [DOI] [PubMed] [Google Scholar]
  • 54.Sporns O, Tononi G, Edelman GM. Theoretical neuroanatomy: relating anatomical and functional connectivity in graphs and cortical connection matrices. Cereb. Cortex. 2000;10:127–141. doi: 10.1093/cercor/10.2.127. [DOI] [PubMed] [Google Scholar]
  • 55.Gallos LK, Makse HA, Sigman M. A small world of weak ties provides optimal global integration of self-similar modules in functional brain networks. Proc. Natl. Acad. Sci. 2012;109:2825–2830. doi: 10.1073/pnas.1106612109. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 56.Berry M, Pentreath V. Criteria for distinguishing between monosynaptic and polysynaptic transmission. Brain Res. 1976;105:1–20. doi: 10.1016/0006-8993(76)90919-7. [DOI] [PubMed] [Google Scholar]
  • 57.Clay Reid R, Alonso J-M. Specificity of monosynaptic connections from thalamus to visual cortex. Nature. 1995;378:281–284. doi: 10.1038/378281a0. [DOI] [PubMed] [Google Scholar]
  • 58.Swadlow HA, Alonso J-M. Multielectrodes join the connectome. Nat. Methods. 2017;14:847–848. doi: 10.1038/nmeth.4424. [DOI] [PubMed] [Google Scholar]
  • 59.Pastore VP, Massobrio P, Godjoski A, Martinoia S. Identification of excitatory-inhibitory links and network topology in large-scale neuronal assemblies from multi-electrode recordings. PLoS Comput. Biol. 2018;14:e1006381. doi: 10.1371/journal.pcbi.1006381. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 60.Barabási A-L, Albert R. Emergence of scaling in random networks. Science. 1999;286:509–512. doi: 10.1126/science.286.5439.509. [DOI] [PubMed] [Google Scholar]
  • 61.Van Den Heuvel MP, Pol HEH. Exploring the brain network: a review on resting-state fMRI functional connectivity. Eur. Neuropsychopharmacol. 2010;20:519–534. doi: 10.1016/j.euroneuro.2010.03.008. [DOI] [PubMed] [Google Scholar]
  • 62.Stam CJ, et al. Graph theoretical analysis of magnetoencephalographic functional connectivity in Alzheimer’s disease. Brain. 2009;132:213–224. doi: 10.1093/brain/awn262. [DOI] [PubMed] [Google Scholar]
  • 63.Ecker AS, et al. Decorrelated neuronal firing in cortical microcircuits. Science. 2010;327:584–587. doi: 10.1126/science.1179867. [DOI] [PubMed] [Google Scholar]
  • 64.Vinje WE, Gallant JL. Sparse coding and decorrelation in primary visual cortex during natural vision. Science. 2000;287:1273–1276. doi: 10.1126/science.287.5456.1273. [DOI] [PubMed] [Google Scholar]
  • 65.Perin R, Berger TK, Markram H. A synaptic organizing principle for cortical neuronal groups. Proc. Natl. Acad. Sci. 2011;108:5419–5424. doi: 10.1073/pnas.1016051108. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 66.Averbeck BB, Latham PE, Pouget A. Neural correlations, population coding and computation. Nat. Rev. Neurosci. 2006;7:358–366. doi: 10.1038/nrn1888. [DOI] [PubMed] [Google Scholar]
  • 67.Milo R, et al. Network motifs: simple building blocks of complex networks. Science. 2002;298:824–827. doi: 10.1126/science.298.5594.824. [DOI] [PubMed] [Google Scholar]
  • 68.Jiang X, et al. Principles of connectivity among morphologically defined cell types in adult neocortex. Science. 2015;350:aac9462. doi: 10.1126/science.aac9462. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 69.Sporns O, Kötter R. Motifs in brain networks. PLoS Biol. 2004;2:e369. doi: 10.1371/journal.pbio.0020369. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 70.Alon U. Network motifs: theory and experimental approaches. Nat. Rev. Genet. 2007;8:450–461. doi: 10.1038/nrg2102. [DOI] [PubMed] [Google Scholar]
  • 71.Duclos C, et al. Brain network motifs are markers of loss and recovery of consciousness. Sci. Rep. 2021;11:3892. doi: 10.1038/s41598-021-83482-9. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 72.Nadin D, et al. Brain network motif topography may predict emergence from disorders of consciousness: a case series. Neurosci. Conscious. 2020;2020:niaa017. doi: 10.1093/nc/niaa017. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 73.Dechery JB, MacLean JN. Functional triplet motifs underlie accurate predictions of single-trial responses in populations of tuned and untuned v1 neurons. PLoS Comput. Biol. 2018;14:e1006153. doi: 10.1371/journal.pcbi.1006153. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 74.Morgan SE, Achard S, Termenon M, Bullmore ET, Vértes PE. Low-dimensional morphospace of topological motifs in human fMRI brain networks. Netw. Neurosci. 2018;2:285–302. doi: 10.1162/netn_a_00038. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 75.Battiston F, Nicosia V, Chavez M, Latora V. Multilayer motif analysis of brain networks. Chaos Interdiscip. J. Nonlinear Sci. 2017;27:047404. doi: 10.1063/1.4979282. [DOI] [PubMed] [Google Scholar]
  • 76.Onnela J-P, Saramäki J, Kertész J, Kaski K. Intensity and coherence of motifs in weighted complex networks. Phys. Rev. E. 2005;71:065103. doi: 10.1103/PhysRevE.71.065103. [DOI] [PubMed] [Google Scholar]
  • 77.Erdős P, Rényi A, et al. On the evolution of random graphs. Publ. Math. Inst. Hungarian Acad. Sci. 1960;5:17–60. [Google Scholar]
  • 78.Li C. Functions of neuronal network motifs. Phys. Rev. E. 2008;78:037101. doi: 10.1103/PhysRevE.78.037101. [DOI] [PubMed] [Google Scholar]
  • 79.Sporns O. Contributions and challenges for network models in cognitive neuroscience. Nat. Neurosci. 2014;17:652–660. doi: 10.1038/nn.3690. [DOI] [PubMed] [Google Scholar]
  • 80.Fornito, A., Zalesky, A. & Bullmore, E. Fundamentals of brain network analysis (Academic Press, 2016).
  • 81.Sporns O, Betzel RF. Modular brain networks. Annu. Rev. Psychol. 2016;67:613. doi: 10.1146/annurev-psych-122414-033634. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 82.Bullmore E, Sporns O. The economy of brain network organization. Nat. Rev. Neurosci. 2012;13:336–349. doi: 10.1038/nrn3214. [DOI] [PubMed] [Google Scholar]
  • 83.Blondel VD, Guillaume J-L, Lambiotte R, Lefebvre E. Fast unfolding of communities in large networks. J. Stat. Mech. Theory Exp. 2008;2008:P10008. doi: 10.1088/1742-5468/2008/10/P10008. [DOI] [Google Scholar]
  • 84.Traag VA, Bruggeman J. Community detection in networks with positive and negative links. Phys. Rev. E. 2009;80:036115. doi: 10.1103/PhysRevE.80.036115. [DOI] [PubMed] [Google Scholar]
  • 85.Gómez S, Jensen P, Arenas A. Analysis of community structure in networks of correlated data. Phys. Rev. E. 2009;80:016114. doi: 10.1103/PhysRevE.80.016114. [DOI] [PubMed] [Google Scholar]
  • 86.Traag VA, Krings G, Van Dooren P. Significant scales in community structure. Sci. Rep. 2013;3:1–10. doi: 10.1038/srep02930. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 87.Betzel RF, et al. Multi-scale community organization of the human structural connectome and its relationship with resting-state functional connectivity. Netw. Sci. 2013;1:353–373. doi: 10.1017/nws.2013.19. [DOI] [Google Scholar]
  • 88.Yu C, et al. Functional segregation of the human cingulate cortex is confirmed by functional connectivity based neuroanatomical parcellation. NeuroImage. 2011;54:2571–2581. doi: 10.1016/j.neuroimage.2010.11.018. [DOI] [PubMed] [Google Scholar]
  • 89.Beckmann M, Johansen-Berg H, Rushworth MF. Connectivity-based parcellation of human cingulate cortex and its relation to functional specialization. J. Neurosci. 2009;29:1175–1190. doi: 10.1523/JNEUROSCI.3328-08.2009. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 90.Mars RB, et al. Diffusion-weighted imaging tractography-based parcellation of the human parietal cortex and comparison with human and macaque resting-state functional connectivity. J. Neurosci. 2011;31:4087–4100. doi: 10.1523/JNEUROSCI.5102-10.2011. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 91.Schneider M, et al. A mechanism for inter-areal coherence through communication based on connectivity and oscillatory power. Neuron. 2021;109:4050–4067. doi: 10.1016/j.neuron.2021.09.037. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 92.Bosman CA, et al. Attentional stimulus selection through selective synchronization between monkey visual areas. Neuron. 2012;75:875–888. doi: 10.1016/j.neuron.2012.06.037. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 93.Kashtan N, Alon U. Spontaneous evolution of modularity and network motifs. Proc. Natl. Acad. Sci. 2005;102:13773–13778. doi: 10.1073/pnas.0503610102. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 94.Hu Y, Trousdale J, Josić K, Shea-Brown E. Motif statistics and spike correlations in neuronal networks. J. Stat. Mech. Theory Exp. 2013;2013:P03012. doi: 10.1088/1742-5468/2013/03/P03012. [DOI] [Google Scholar]
  • 95.Hu Y, Trousdale J, Josić K, Shea-Brown E. Local paths to global coherence: cutting networks down to size. Phys. Rev. E. 2014;89:032802. doi: 10.1103/PhysRevE.89.032802. [DOI] [PubMed] [Google Scholar]
  • 96.Ocker GK, Litwin-Kumar A, Doiron B. Self-organization of microcircuits in networks of spiking neurons with plastic synapses. PLoS Comput. Biol. 2015;11:e1004458. doi: 10.1371/journal.pcbi.1004458. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 97.Hu Y, et al. Feedback through graph motifs relates structure and function in complex networks. Phys. Rev. E. 2018;98:062312. doi: 10.1103/PhysRevE.98.062312. [DOI] [Google Scholar]
  • 98.Bojanek K, Zhu Y, MacLean J. Cyclic transitions between higher order motifs underlie sustained asynchronous spiking in sparse recurrent networks. PLoS Comput. Biol. 2020;16:e1007409. doi: 10.1371/journal.pcbi.1007409. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 99.Gorochowski TE, Grierson CS, Di Bernardo M. Organization of feed-forward loop motifs reveals architectural principles in natural and engineered networks. Sci. Adv. 2018;4:eaap9751. doi: 10.1126/sciadv.aap9751. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 100.Deco G, Kringelbach ML. Metastability and coherence: extending the communication through coherence hypothesis using a whole-brain computational perspective. Trends Neurosci. 2016;39:125–135. doi: 10.1016/j.tins.2016.01.001. [DOI] [PubMed] [Google Scholar]
  • 101.Hutchison RM, et al. Dynamic functional connectivity: promise, issues, and interpretations. NeuroImage. 2013;80:360–378. doi: 10.1016/j.neuroimage.2013.05.079. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 102.Sporns O, Tononi G, Edelman GM. Connectivity and complexity: the relationship between neuroanatomy and brain dynamics. Neural Netw. 2000;13:909–922. doi: 10.1016/S0893-6080(00)00053-8. [DOI] [PubMed] [Google Scholar]
  • 103.Mante V, Bonin V, Carandini M. Functional mechanisms shaping lateral geniculate responses to artificial and natural stimuli. Neuron. 2008;58:625–638. doi: 10.1016/j.neuron.2008.03.011. [DOI] [PubMed] [Google Scholar]
  • 104.Feldt S, Bonifazi P, Cossart R. Dissecting functional connectivity of neuronal microcircuits: experimental and theoretical insights. Trends Neurosci. 2011;34:225–236. doi: 10.1016/j.tins.2011.02.007. [DOI] [PubMed] [Google Scholar]
  • 105.Adini Y, Sagi D, Tsodyks M. Excitatory–inhibitory network in the visual cortex: psychophysical evidence. Proc. Natl. Acad. Sci. 1997;94:10426–10431. doi: 10.1073/pnas.94.19.10426. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 106.Ferster D, Miller KD. Neural mechanisms of orientation selectivity in the visual cortex. Annu. Rev. Neurosci. 2000;23:441–471. doi: 10.1146/annurev.neuro.23.1.441. [DOI] [PubMed] [Google Scholar]
  • 107.Boly M, et al. Connectivity changes underlying spectral eeg changes during propofol-induced loss of consciousness. J. Neurosci. 2012;32:7082–7090. doi: 10.1523/JNEUROSCI.3769-11.2012. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 108.Elsegai H, Shiells H, Thiel M, Schelter B. Network inference in the presence of latent confounders: the role of instantaneous causalities. J. Neurosci. Methods. 2015;245:91–106. doi: 10.1016/j.jneumeth.2015.02.015. [DOI] [PubMed] [Google Scholar]
  • 109.Löwe, S., Madras, D., Zemel, R., & Welling, M. Amortized causal discovery: Learning to infer causal graphs from time-series data. InConference on Causal Learning and Reasoning 509–525 (PMLR, 2022).
  • 110.Wang X, Shojaie A. Causal discovery in high-dimensional point process networks with hidden nodes. Entropy. 2021;23:1622. doi: 10.3390/e23121622. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 111.Friston KJ. Functional and effective connectivity: a review. Brain Connect. 2011;1:13–36. doi: 10.1089/brain.2011.0008. [DOI] [PubMed] [Google Scholar]
  • 112.Pachitariu, M., Steinmetz, N., Kadir, S., Carandini, M. & Kenneth D, H. Kilosort: realtime spike-sorting for extracellular electrophysiology with hundreds of channels. bioRxiv 061481 (2016).
  • 113.Buccino AP, et al. Spikeinterface, a unified framework for spike sorting. Elife. 2020;9:e61834. doi: 10.7554/eLife.61834. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 114.Smith MA, Kohn A. Spatial and temporal scales of neuronal correlation in primary visual cortex. J. Neurosci. 2008;28:12591–12603. doi: 10.1523/JNEUROSCI.2929-08.2008. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 115.Harrison MT, Geman S. A rate and history-preserving resampling algorithm for neural spike trains. Neural Comput. 2009;21:1244–1258. doi: 10.1162/neco.2008.03-08-730. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 116.Amarasingham A, Harrison MT, Hatsopoulos NG, Geman S. Conditional modeling and the jitter method of spike resampling. J. Neurophysiol. 2012;107:517–531. doi: 10.1152/jn.00633.2011. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 117.Vicente R, Gollo LL, Mirasso CR, Fischer I, Pipa G. Dynamical relaying can yield zero time lag neuronal synchrony despite long conduction delays. Proc. Natl. Acad. Sci. 2008;105:17157–17162. doi: 10.1073/pnas.0809353105. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 118.Gollo LL, Mirasso C, Sporns O, Breakspear M. Mechanisms of zero-lag synchronization in cortical motifs. PLoS Comput. Biol. 2014;10:e1003548. doi: 10.1371/journal.pcbi.1003548. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 119.Kobayashi R, et al. Reconstructing neuronal circuitry from parallel spike trains. Nat. Commun. 2019;10:4468. doi: 10.1038/s41467-019-12225-2. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 120.Maslov S, Sneppen K. Specificity and stability in topology of protein networks. Science. 2002;296:910–913. doi: 10.1126/science.1065103. [DOI] [PubMed] [Google Scholar]
  • 121.Leicht EA, Newman ME. Community structure in directed networks. Phys. Rev. Lett. 2008;100:118703. doi: 10.1103/PhysRevLett.100.118703. [DOI] [PubMed] [Google Scholar]
  • 122.Doreian P, Mrvar A. A partitioning approach to structural balance. Soc. Netw. 1996;18:149–168. doi: 10.1016/0378-8733(95)00259-6. [DOI] [Google Scholar]
  • 123.Zou GY. Toward using confidence intervals to compare correlations. Psychol. Methods. 2007;12:399. doi: 10.1037/1082-989X.12.4.399. [DOI] [PubMed] [Google Scholar]
  • 124.Jia X, et al. High-density extracellular probes reveal dendritic backpropagation and facilitate neuron classification. J. Neurophysiol. 2019;121:1831–1847. doi: 10.1152/jn.00680.2018. [DOI] [PubMed] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

Peer Review File (20.6MB, pdf)
Reporting Summary (1.5MB, pdf)
Source Data (11.3MB, xlsx)

Data Availability Statement

All the data analyzed in this manuscript is part of the Allen Brain Observatory introduced in ref. 30. The raw data used to generate main text figures is available for download in Neurodata Without Borders (NWB) format via the AllenSDK. Example Jupyter Notebooks for accessing the data can be found at https://allensdk.readthedocs.io/en/latest/visual_coding_neuropixels.html. Source data for main text figures are provided as a Source Data file. Source data are provided with this paper.

Code for analyses in the manuscript and generation of figures are available from the repository: https://github.com/HChoiLab/functional-network.


Articles from Nature Communications are provided here courtesy of Nature Publishing Group

RESOURCES