Data post-processing
Assessment of brain microstructural changes
At first, compute the Jacobian determinant value for each voxel from the mapping between atlas and subject images generated by LDDMM, and conduct whole-brain voxel-based morphometric analysis in Matlab to identify local volumetric changes affected by rearing, sex, and their interaction (2 × 2 ANOVA, FDR corrected, α = 0.1, P < 0.0105, cluster size > 25 voxels). See the Matlab codes (source data 1) used to conduct 2 × 2 ANOVA (White et al., 2020). Then, similarly perform 2 × 2 ANOVA (FDR corrected, α = 0.1, P < 0.007, cluster size > 25 voxels) to examine the voxel-wise changes in FA (White et al., 2020). These analyses will provide unbiased overviews of morphometric changes due to rearing, sex, and rearing by sex interaction.
Selection of brain regions (nodes) for structural connectivity assessment
Identify nodes that show rearing-mediated volumetric and FA changes to investigate structural connectivity alterations between nodes, as well as modifications in the brain global and regional network properties (also see Note 2). These nodes will be identical for both left and right hemispheres.
Assessment of brain structural connectivity using fiber tractography
Upon pre-processing the data and selection of potential brain nodes, execute the following steps accordingly for each individual subject to map axonal projections between nodes using probabilistic fiber tractography in MRtrix:
Step 1: From the pre-processed raw data, estimate the response function for spherical deconvolution (command: dwi2response) (Tournier et al., 2012, Tournier et al., 2013). Specify the algorithm name ‘tournier’ (other options: dhollander, manual, fa, msmt_5tt, tax), gradient table, brain mask, and the maximum harmonic degree (lmax = 6).
Step 2: Estimate the whole brain fiber orientation distribution (FOD) map from the pre-processed raw data and respective response function (command: dwi2fod) (Tournier et al., 2007). Define the algorithm name ‘CSD,’ gradient table, and brain mask.
Step 3. Generate the whole brain fiber tractogram from the FOD map (command: tckgen) (Tournier et al., 2009). Use the whole brain mask as the ‘seed region’ to enable tracking fibers throughout the brain for whole brain tractography (whole brain tractogram) (Figure 4A). Set the tractography method to probabilistic, the FOD amplitude cut-off to 0.05, the minimum length of the fiber to 3 mm, and the target number of the streamlines to be counted to 5 million.
Step 4: For node-to-node tractography, the whole brain tractography in step 3 may not generate enough streamlines for small nodes (e.g., amygdala). Further increasing the total number of streamlines (> 5 million) may not resolve this issue but requires significant computational resources. In this case, extract the regions of interest (ROIs) from the atlas co-registered into the subject’s native space using Matlab. Next, define a specific node as ‘seed region’ to initiate the fiber tracking from and another node as ‘target’ to define the fiber termination point. Then use these two nodes to extract the streamlines connecting two nodes (seed and target) using the tckedit command (Figure 4B). Consider two nodes as ‘connected’ if there is at least one streamline terminating at the target node; otherwise, they are ‘not connected.’

Figure 4. Fiber tractography pipeline.
A. Estimation of mouse whole brain fiber tractogram from the fiber orientation distribution (FOD) map. Red, green, and blue colors represent the fiber projections in x, y, and z-axis, respectively. Five million fibers were generated from each subject; 100 K streamlines were extracted for better visualization of the brain structures. B. Extraction of fibers connecting two specific nodes (seed = amygdala and target = PFC).
Generating brain structural connectome matrix
Repeat step 4 to estimate the structural connections between all possible pairs of nodes (ignore intra-regional connectivity) for both hemispheres (Figure 5A). For example, for 14 nodes in one hemisphere, the total number of tractograms would be the number of nodes N = 14 multiplied by N-1, or 14 × 13 = 182. Finally, for M number of seed regions and N number of target regions, generate an M × N matrix individually for the left and the right hemispheres. Assign the seed and target regions in horizontal and vertical axis, respectively, so that each cell represents the number of streamlines connecting the corresponding seed and target nodes (Figure 5B). Consider the number of streamlines between nodes as a measure of the connection strength. Generate the connectome matrix for all subjects and name them according to the subject IDs.

Figure 5. Generation of the mouse brain structural connectome.
A. Extraction of fibers connecting seed and target nodes. B. Generation of structural connectome from the tractograms estimated from selected seed and target nodes. Blue cells correspond to the tractograms shown in A, and white cells indicate intra-regional connectivity (not counted). C. Use the GRETNA software to compute global and regional brain network properties. Panels on the left list all possible properties available for computation. Select the properties based on the study design and transfer them to the pipeline option on the right panel using the respective arrows. Load the connectome matrix for all subjects belonging to one group with specific group ID and then load for the next group with different ID. Specify the output folder to store the results and define the network configuration. Finally, hit the ‘Run’ button to start computation.
Brain network properties analysis
Use the Matlab based Graph theoretical network analysis toolbox (GRETNA) to compute the brain global and regional network properties (Wang et al., 2015). Perform the following steps accordingly for brain network-based analysis (Figure 5C):
-
Create an individual data folder containing two sub-folders for left and right hemispheres for each group.
-
Save the connectome matrices as ‘.mat’ files in the respective folders.
-
Open GRETNA in Matlab and select ‘Network Analysis’ (GRETNA >> Network Analysis).
-
In the ‘Brain Connectivity Matrix’ tab, load all connectivity matrices of one hemisphere from one group and assign the group ID. Do the same for the other group.
-
Locate a directory for saving the results in the ‘output directory’ tab.
-
Next, select network properties to be computed from the Global Network Metrics and Nodal and Modular Network Metrics tabs.
-
For global brain network analysis, select ‘Global – Small-World (SW)’ and ‘Global – Efficiency (Geff).’ For regional network properties, select ‘Nodal – Clustering Coefficient (NCp),’ ‘Nodal – Efficiency (Neff),’ and ‘Nodal – Degree Centrality (Dcent).’ Other properties can be selected as per the study design or requirements.
-
Configure the brain network in the ‘Network Analysis’ tab as follows:
Parameters
|
Value
|
Sign of matrix
|
Absolute
|
Thresholding method
|
Network sparsity
|
Threshold sequence
|
0.05, 0.1, 0.15 (or as per the study design)
|
Network type
|
Weighted
|
Random network number
|
1,000
|
-
Recheck the loaded data and the network configuration. Hit the ‘Run’ button if everything looks alright. Computation time depends on the number of subjects, size of the connectome matrices, random network number, and the threshold sequence.
-
Once the computation is done, results can be retrieved from the output directory. For further assistance, please refer to the following manual from Neuroimaging Tools and Resources Collaboratory (NITRC): https://www.nitrc.org/docman/view.php/668/2262/manual_v2.0.0.pdf.
Statistical analysis of the estimated structural connectivity and brain network properties
To investigate the effect of rearing and sex on brain structural connectivity and brain network properties, perform a two-way ANOVA with rearing condition (CTL or UPS) and sex as fixed factors, followed by post-hoc comparisons using Tukey’s HSD or Sidak’s test using GraphPad Prism.