Fig. 2: Tracking microglial colonization in different brain regions.

A Detecting cell nuclei performed by CellPose segmentation algorithm16. A1- Image of a fetal tissue section at 17 pcw. A2- Cropped regions (256 × 256) showing three different densities (high, medium, and low), where we identified 82, 42, and 13 cells respectively. A3 Nuclei density over the entire tissue (left color bar). This step is followed by the Otsu-thresholding and morphological operation pipeline (Supplementary Figs. 16 and 17). A4 Automatic delineation of four brain regions based on nuclei density: striatum (blue), neocortex (pink), ganglionic eminence (orange), and cortical boundary (green). B Percentage and the number of microglia estimated from the deep learning algorithm for three pcws (17, 19, and 20) (n= 3). C Distribution of microglial morphologies in the ganglionic eminence. Source data are provided as a Source Data file.