Study S04 · generated 2026-10-13T21:12:19+00:00 · 319.8 s

Functional network topology across CSDS phases

Neuron-level co-activity graphs, null-model thresholding and graph-theoretic contrasts.

Question

Does the functional network formed by co-active neurons reorganise during defeat and post-defeat sensory contact relative to baseline, and does topology change as defeats accumulate?

Background & rationale

Network neuroscience treats neurons as nodes and statistical dependencies between their activity as edges (Bullmore & Sporns 2009; Rubinov & Sporns 2010). In miniscope data, co-activation graphs built from pairwise correlations, thresholded against shuffled surrogates, reveal stress effects. Repeated stress increases the modularity and degree assortativity of dorsal CA1 networks before coding deficits appear (Transl Psychiatry 2022). Chronic stress also increases between-module cortical connectivity in mesoscale calcium imaging, reversible by ketamine (Neuropsychopharmacology 2022). At the systems level, resilience and susceptibility to CSDS map onto distinct functional connectivity patterns (Mol Psychiatry 2025; Hultman et al. 2018). CaGraph (Porubsky et al.) formalises this approach for calcium imaging.

Methodology

Nodes and edges. Each tracked neuron is a node. For each session, the edge weight between neurons i and j is the Pearson correlation of their inferred spike-probability time series at the native frame rate (150 ms bins, ≈2,000 frames per BL/SD/SS session).

Two complementary thresholds. 1. Statistical graph. Each neuron was circularly shifted independently (shift 10–90% of the session; 50 surrogates). This preserves each neuron's rate and autocorrelation and destroys co-activity. Edges exceed the 99th percentile of the pooled surrogate correlation distribution. Its density (fraction of significant pairs) measures how much genuine co-activity exists. 2. Proportional graph. The strongest 10% of positive correlations. Fixing density removes the trivial dependence of topology on edge count (van Wijk et al. 2010), so this graph is used for all topological measures.

Graph measures (binary, undirected). Clustering coefficient; global efficiency (mean inverse shortest path); characteristic path length (largest component); Louvain modularity Q (resolution 1; Blondel et al. 2008); Q in excess of Q from 3 circular-shift surrogate graphs at the same density; degree assortativity; and small-world σ = (C/C_rand)/(L/L_rand) with Erdős–Rényi approximations (Humphries & Gurney 2008).

Statistics. Primary contrasts use days 1–9, day 7 excluded, restricted to days on which the animal has all of BL, SD and SS: per-animal means compared with a Friedman test and exact Wilcoxon signed-rank tests (SD vs BL, SS vs BL, SS vs SD). Session-level OLS with animal × day block fixed effects gives within-day effect estimates; adding the session mean event rate as a covariate shows how much of each effect firing rate accounts for. These session-level p-values are descriptive (sessions of one animal are not independent). Day trends within SD and BL are tested on per-animal slopes (exact Wilcoxon). P-values were FDR-corrected across all metrics × contrasts, and separately across day trends.

Sensitivity analyses. (i) ΔF/F instead of spike probability; (ii) global signal regression: each neuron's activity is residualised on the population mean before correlation, which removes shared population-wide fluctuations (Murphy & Fox 2017); (iii) SIT CD-1 vs empty phase. Session assignment for the two short recordings is the lab's (6597 lacks SS on day 9; 6669 lacks SIT), so those animals stay in the primary set.

Parameters

ParameterValue
proportional_density0.1
null_shuffles50
null_quantile0.99
louvain_resolution1.0
seed0
signalCASCADE spike probability

Highlights

null

modularity Q (SD vs BL)

+0.0225

Median paired change; 5/6 animals increased; p = 0.062, q = 0.750; Friedman p = 0.311.

null

clustering coefficient (SD vs BL)

+0.0117

Median paired change; 4/6 animals increased; p = 0.219, q = 0.750; Friedman p = 0.846.

null

Q − null Q (SD vs BL)

+0.0352

Median paired change; 4/6 animals increased; p = 0.219, q = 0.750; Friedman p = 0.607.

null

Robust to sensitivity analyses

0 metric(s)

No SD vs BL effect was both nominally significant and direction-consistent across sensitivity analyses.

Results

Co-activity. The statistical graphs show how much co-activity exceeds the surrogate null. Significant-edge density averaged BL 0.748, SD 0.752, SS 0.691 (Friedman p = 0.042), and mean pairwise correlation averaged BL 0.417, SD 0.423, SS 0.388 (Friedman p = 0.513). Pairwise correlations are high overall, which indicates a strong shared (population-wide) component in the signal.

Topology at fixed density. The SD vs BL contrasts with the smallest p-values were modularity Q: median Δ = +0.0225 (5/6 animals up, p = 0.062, q = 0.750); clustering coefficient: median Δ = +0.0117 (4/6 animals up, p = 0.219, q = 0.750); Q − null Q: median Δ = +0.0352 (4/6 animals up, p = 0.219, q = 0.750). 0 of 24 metric × contrast tests survived FDR correction. All values are in Table 1 and Figures 2–3.

Confounds and robustness. Table 2 repeats the fixed-effect models with the session firing rate as a covariate; condition terms that shrink markedly are rate-driven. Direction-consistent SD vs BL effects across signal (ΔF/F) and global-signal-regression analyses: none (Table 3, Figure 3).

Across defeat days. 0 of 16 day trends survived FDR correction (Table 4, Figure 4).

Figures

Example functional networks
Figure 1. Example functional networks. Animal 6675, CSDS day 5. Top: neuron × neuron correlation matrices, ordered by the baseline Louvain modules. Bottom: 10%-density graphs (isolated nodes hidden), coloured by Louvain module.
Network measures by CSDS phase
Figure 2. Network measures by CSDS phase. Per-animal means (grey) and group mean ± SEM across BL, SD and SS (days 1–9 without day 7). Stars: exact Wilcoxon vs BL, uncorrected (* p < 0.05; with n = 6 the minimum two-sided p is 0.031). See the tables for FDR-corrected q.
Effect sizes and robustness
Figure 3. Effect sizes and robustness. Paired effect size dz per network measure for SD vs BL and SS vs BL (filled), with SD vs BL repeated using ΔF/F (triangles) and after global signal regression (diamonds). Stars: exact Wilcoxon p, uncorrected.
Network measures across CSDS days
Figure 4. Network measures across CSDS days. Mean ± SEM across animals per condition and day.

Tables

Table 1. Network topology: condition contrasts (days 1–9 without day 7)

Exact Wilcoxon on per-animal means; Friedman across BL/SD/SS; q = BH-FDR over metrics × contrasts. Download CSV

metriccontrastnmedian_diffdzn_increasepq_fdrfriedman_chi2friedman_p
mean_rSD vs BL60.01240.19640.8440.9641.330.513
mean_rSS vs BL6-0.0095-0.52420.3120.9381.330.513
mean_rSS vs SD6-0.0365-0.70120.1560.751.330.513
sig_densitySD vs BL60.01120.10830.8440.9646.330.0421
sig_densitySS vs BL6-0.0315-0.69110.2190.756.330.0421
sig_densitySS vs SD6-0.0587-1.1900.03120.756.330.0421
prop_clusteringSD vs BL60.01170.58840.2190.750.3330.846
prop_clusteringSS vs BL60.01870.41630.4380.9640.3330.846
prop_clusteringSS vs SD60.0007240.03813110.3330.846
prop_efficiencySD vs BL60.001840.48730.6880.96401
prop_efficiencySS vs BL60.000994-0.091831101
prop_efficiencySS vs SD6-0.00958-0.43930.5620.96401
prop_modularitySD vs BL60.02250.92950.06250.752.330.311
prop_modularitySS vs BL60.00190.10630.6880.9642.330.311
prop_modularitySS vs SD6-0.0548-0.32420.5620.9642.330.311
prop_modularity_excessSD vs BL60.03520.61140.2190.7510.607
prop_modularity_excessSS vs BL60.008680.11731110.607
prop_modularity_excessSS vs SD6-0.0435-0.26320.5620.96410.607
prop_assortativitySD vs BL6-0.00583-0.21530.8440.96410.607
prop_assortativitySS vs BL60.02590.72640.1560.7510.607
prop_assortativitySS vs SD60.02980.55640.4380.96410.607
prop_small_worldSD vs BL6-0.02820.16430.8440.9640.3330.846
prop_small_worldSS vs BL6-0.03420.027920.8440.9640.3330.846
prop_small_worldSS vs SD60.0551-0.084830.8440.9640.3330.846

Table 2. Session-level models with and without a firing-rate covariate

OLS with animal × day fixed effects; the rate covariate shows how much of each change activity explains. p_session is descriptive. Download CSV

metrictermcoefsep_sessionn_sessionsmodel
mean_rSD vs BL0.007260.01680.66887condition + animal
mean_rSS vs BL-0.02960.01680.08487condition + animal
sig_densitySD vs BL0.003680.02410.87987condition + animal
sig_densitySS vs BL-0.05820.02410.018987condition + animal
prop_clusteringSD vs BL0.0130.01460.37987condition + animal
prop_clusteringSS vs BL0.01630.01460.27187condition + animal
prop_efficiencySD vs BL0.0130.01280.31387condition + animal
prop_efficiencySS vs BL-0.0008370.01280.94887condition + animal
prop_modularitySD vs BL0.0310.02590.23787condition + animal
prop_modularitySS vs BL0.008970.02590.73187condition + animal
prop_modularity_excessSD vs BL0.02910.02890.31987condition + animal
prop_modularity_excessSS vs BL0.008480.02890.7787condition + animal
prop_assortativitySD vs BL-0.007670.03350.8287condition + animal
prop_assortativitySS vs BL0.04930.03350.14787condition + animal
prop_small_worldSD vs BL0.03330.1120.76787condition + animal
prop_small_worldSS vs BL0.01750.1120.87687condition + animal
mean_rSD vs BL0.01530.02020.4587+ rate covariate
mean_rSS vs BL-0.02750.01720.11587+ rate covariate
sig_densitySD vs BL0.02070.02870.47387+ rate covariate
sig_densitySS vs BL-0.05370.02440.031887+ rate covariate
prop_clusteringSD vs BL-0.0007390.01730.96687+ rate covariate
prop_clusteringSS vs BL0.01270.01470.39287+ rate covariate
prop_efficiencySD vs BL0.005910.01530.787+ rate covariate
prop_efficiencySS vs BL-0.00270.0130.83687+ rate covariate
prop_modularitySD vs BL-0.003320.030.91287+ rate covariate
prop_modularitySS vs BL-3.78e-050.02550.99987+ rate covariate
prop_modularity_excessSD vs BL0.008520.03440.80587+ rate covariate
prop_modularity_excessSS vs BL0.003090.02930.91687+ rate covariate
prop_assortativitySD vs BL0.009590.04010.81287+ rate covariate
prop_assortativitySS vs BL0.05380.03410.1287+ rate covariate
prop_small_worldSD vs BL-0.0150.1340.91187+ rate covariate
prop_small_worldSS vs BL0.004850.1140.96687+ rate covariate

Table 3. Sensitivity analyses (SD vs BL unless stated)

Same contrast with ΔF/F, after global signal regression, and SIT CD-1 vs empty. Download CSV

metricanalysiscontrastnmedian_diffmean_diffn_increasepdz
mean_rΔF/F signalSD vs BL60.03140.036450.06251.22
mean_rglobal signal regressedSD vs BL6-0.000242-0.00073331-0.0597
mean_rSIT CD1 vs emptySIT_CD1 vs SIT_NoCD150.05090.032730.4380.526
sig_densityΔF/F signalSD vs BL60.04190.047250.06251.05
sig_densityglobal signal regressedSD vs BL6-0.00737-0.0075420.312-0.552
sig_densitySIT CD1 vs emptySIT_CD1 vs SIT_NoCD150.1160.12540.1250.88
prop_clusteringΔF/F signalSD vs BL60.02630.022550.09381.11
prop_clusteringglobal signal regressedSD vs BL60.009530.0065530.6880.266
prop_clusteringSIT CD1 vs emptySIT_CD1 vs SIT_NoCD15-0.0151-0.012721-0.146
prop_efficiencyΔF/F signalSD vs BL60.03350.022350.09380.882
prop_efficiencyglobal signal regressedSD vs BL60.004370.0079830.6880.253
prop_efficiencySIT CD1 vs emptySIT_CD1 vs SIT_NoCD15-0.0576-0.027410.438-0.241
prop_modularityΔF/F signalSD vs BL60.04620.051250.06251.07
prop_modularityglobal signal regressedSD vs BL60.01930.011640.6880.226
prop_modularitySIT CD1 vs emptySIT_CD1 vs SIT_NoCD15-0.0392-0.0091920.812-0.0633
prop_modularity_excessΔF/F signalSD vs BL60.0480.051960.03122.76
prop_modularity_excessglobal signal regressedSD vs BL60.0206-0.0052141-0.0669
prop_modularity_excessSIT CD1 vs emptySIT_CD1 vs SIT_NoCD15-0.0138-0.00099110.625-0.0059
prop_assortativityΔF/F signalSD vs BL60.01480.029440.5620.312
prop_assortativityglobal signal regressedSD vs BL60.01620.0056840.8440.0824
prop_assortativitySIT CD1 vs emptySIT_CD1 vs SIT_NoCD150.05680.047630.3120.73
prop_small_worldΔF/F signalSD vs BL6-0.196-0.19910.0938-0.864
prop_small_worldglobal signal regressedSD vs BL6-0.0766-0.009220.844-0.0299
prop_small_worldSIT CD1 vs emptySIT_CD1 vs SIT_NoCD15-0.0686-0.22720.625-0.327

Table 4. Day trends of topology

slope_per_day = pooled within-animal slope; p = exact Wilcoxon of per-animal slopes. Download CSV

metricconditionslope_per_daymedian_animal_slopen_positiven_animalspn_sessionsq_fdr
mean_rSD-0.0006380.00124460.844301
mean_rBL0.0004420.0037460.688301
sig_densitySD0.003880.00689460.562301
sig_densityBL0.01170.0132560.219301
prop_clusteringSD-0.000169-0.002361301
prop_clusteringBL0.0007370.00263461301
prop_efficiencySD0.0009960.00174460.844301
prop_efficiencyBL0.001310.000272460.688301
prop_modularitySD-0.00126-0.00662160.438301
prop_modularityBL-0.0005940.00216361301
prop_modularity_excessSD0.0027-0.00478260.688301
prop_modularity_excessBL0.003090.00139360.688301
prop_assortativitySD-0.00198-0.0137260.844301
prop_assortativityBL0.000367-0.000672361301
prop_small_worldSD-0.00428-0.0185260.844301
prop_small_worldBL-0.002210.00173361301

Table 5. All session-level network measures

Showing 12 of 111 rows. Download CSV

keysubjectconditiondaymappingn_neuronsn_framesmean_ratemean_rmean_pos_rnull_thrsig_densityprop_densityprop_mean_degreeprop_clusteringprop_path_lengthprop_efficiencyprop_modularityprop_n_modulesprop_assortativityprop_small_worldprop_lcc_fractionprop_modularity_nullprop_modularity_excess
4703_BL_D14703BL1supported10519671.750.4140.4290.240.6750.110.40.492.670.230.37450.523.660.6760.3470.0267
4703_SD_D14703SD1supported10520011.790.5060.5510.3380.6340.110.40.3542.50.1470.17360.452.810.4860.525-0.353
4703_SS_D14703SS1supported10520001.90.4380.5310.2620.6370.110.40.483.130.2230.41250.5013.050.6860.3750.0376
4703_BL_D24703BL2supported10520001.850.4270.4980.280.6340.110.40.4483.120.2230.37540.5282.850.6950.418-0.0434
4703_SD_D24703SD2supported10520012.090.4760.5160.290.6530.110.40.4413.150.2060.37160.7032.780.6570.381-0.00996
4703_SS_D24703SS2supported10520001.860.470.510.30.6740.110.40.4212.990.1960.35340.5622.790.6290.413-0.0601
4703_BL_D34703BL3supported10520001.730.4650.4850.2010.8170.110.40.3983.150.2390.28160.3182.510.7240.332-0.0503
4703_SD_D34703SD3supported10520001.850.5120.5250.2660.7610.110.40.5343.070.2620.44370.3763.460.7620.3990.0439
4703_SS_D34703SS3supported10520011.770.5170.5220.1570.8930.110.40.4632.870.2470.35460.3913.210.7240.3340.02
4703_BL_D54703BL5supported10520001.410.6850.6850.2510.9620.110.40.4432.380.2460.34480.2663.70.6860.404-0.0593
4703_SD_D54703SD5supported10520001.570.6730.6730.2060.9760.110.40.4552.950.2450.36190.5123.060.7240.3380.0229
4703_SS_D54703SS5supported10520011.490.5130.5130.2790.8120.110.40.5723.120.2920.51650.3953.640.8290.3570.16

Limitations

  • Pearson correlations of calcium-derived signals reflect shared input and common modulation as well as synaptic coupling. Edges are functional, not anatomical.
  • Correlations rise with firing rate (de la Rocha et al. 2007). The rate-covariate model addresses this partially.
  • Mean pairwise correlations are high (≈0.4–0.7), consistent with a strong shared component (global co-fluctuation, residual neuropil or motion). Proportional graphs keep the strongest edges, which partly mitigates this. The global-signal-regressed sensitivity analysis tests whether effects survive removing it. Global signal regression can itself introduce negative correlations, so neither version is definitive.
  • The proportional threshold (10%) is a choice. Effects consistent across the statistical and proportional graphs are more trustworthy.
  • n = 6 animals, no unstressed control group: condition effects are within-animal contrasts of contexts, not stress-vs-control comparisons.
  • BL, SD and SS are always recorded in that order within a day, so condition contrasts are confounded with position in the recording.
  • Small-world σ uses Erdős–Rényi approximations (C_rand = k/(n−1), L_rand = ln n / ln k), with C over all nodes and L over the largest component. It is a relative index, not an absolute small-world test.

References

  1. Bullmore E. & Sporns O. (2009) Complex brain networks: graph theoretical analysis of structural and functional systems. Nat Rev Neurosci 10:186–198.
  2. Murphy K. & Fox M.D. (2017) Towards a consensus regarding global signal regression for resting state functional connectivity MRI. NeuroImage 154:169–173.
  3. Rubinov M. & Sporns O. (2010) Complex network measures of brain connectivity: uses and interpretations. NeuroImage 52:1059–1069.
  4. Repeated stress exposure leads to structural synaptic instability prior to disorganization of hippocampal coding (2022) Transl Psychiatry. doi:10.1038/s41398-022-02107-5
  5. Selective effects of acute and chronic stress on cortical functional connectivity and reversal with ketamine (2022) Neuropsychopharmacology. doi:10.1038/s41386-022-01506-y
  6. Resting-state fMRI reveals altered functional connectivity associated with resilience and susceptibility to CSDS (2025) Mol Psychiatry. doi:10.1038/s41380-025-02897-2
  7. Hultman R. et al. (2018) Brain-wide electrical spatiotemporal dynamics encode depression vulnerability. Cell 173:166–180.
  8. Blondel V.D. et al. (2008) Fast unfolding of communities in large networks. J Stat Mech P10008.
  9. van Wijk B.C.M., Stam C.J. & Daffertshofer A. (2010) Comparing brain networks of different size and connectivity density using graph theory. PLoS One 5:e13701.
  10. Humphries M.D. & Gurney K. (2008) Network 'small-world-ness': a quantitative method for determining canonical network equivalence. PLoS One 3:e0002051.
  11. Porubsky V. et al. CaGraph: graph theory analysis of calcium imaging data. github.com/vporubsky/CaGraph