Skip to main content

This is a preprint.

It has not yet been peer reviewed by a journal.

The National Library of Medicine is running a pilot to include preprints that result from research funded by NIH in PMC and PubMed.

bioRxiv logoLink to bioRxiv
[Preprint]. 2026 Jun 28:2026.06.24.734262. [Version 1] doi: 10.64898/2026.06.24.734262

PARROT: Phase-Altering Regulatory Rewiring Over Time

Chen Chen 1, Megha Padi 2,*, John Quackenbush 1,*
PMCID: PMC13320992  PMID: 42395364

Abstract

Motivation:

Gene regulatory networks undergo dynamic restructuring during development and disease. Identifying when and how these networks change is crucial for understanding developmental and disease transitions, yet existing change-point detection methods often ignore network structure or lack interpretable community assignments.

Results:

We present PARROT (Phase-Altering Regulatory Rewiring Over Time), a framework for detecting change-points in dynamic networks using Stochastic Block Models. PARROT jointly estimates change-point locations and community structure across four network classes: unipartite and bipartite with either Gaussian or Bernoulli edge models. Simulations demonstrate improved performance and community recovery compared to other methods. Applications to human cardiac differentiation and mouse lung development data successfully recovered known phase boundaries. PARROT identifies both which genes are reassigned across modules and how the connections change between states.

Availability:

PARROT is available as an R package at https://github.com/cchen22/PARROT.

Contact:

chenchen9945@gmail.com

Supplementary information:

Supplementary data are available at Bioinformatics online.

Keywords: change-point detection, dynamic networks, stochastic block model, gene regulatory networks, community detection

1. Introduction

Gene regulatory networks (GRNs) are inherently dynamic, undergoing restructuring during development, cellular differentiation, disease progression, and aging (Barabási and Oltvai, 2004; Karlebach and Shamir, 2008; Schlitt and Brazma, 2007). Determining when these transitions occur and which regulatory programs are affected is fundamental to understanding dynamic biological processes. While numerous methods exist for detecting change-points (CPs) in time series data (Killick et al., 2012; Fryzlewicz, 2014; Truong et al., 2020) and for community detection in networks (Karrer and Newman, 2011; Padi and Quackenbush, 2018), few approaches address the joint problem of detecting regulatory transitions in dynamic network data that alter biological processes through network rewiring to change phenotypic state.

Commonly used network change-point detection methods fall into several categories. Graph-based methods like gSeg (Chen et al., 2020) use distribution-free scan statistics but do not recover community structure. Bayesian approaches such as NetworkChange (Park and Sohn, 2022) provide uncertainty quantification but are computationally intensive and limited to unipartite networks, whereas regulatory networks are typically bipartite, with transcription factor (TF) nodes and target gene nodes having very different properties. Energy-based methods (James and Matteson, 2015) require vectorization of network data, losing structural information. From the other direction, dynamic community detection methods such as PisCES (Liu et al., 2018) apply spectral clustering with eigenvector smoothing to recover persistent community structure across time, but flag change-points only implicitly, with no tested location, p-value, or bipartite network support. None of these jointly estimates change-point locations and community membership in a statistically robust framework, leaving researchers unable to identify when network rewire and which modules drive those transitions.

Here we present PARROT (Phase-Altering Regulatory Rewiring Over Time), a model-based framework that overcomes these limitations. PARROT uses Stochastic Block Models (SBMs) (Holland et al., 1983) to model network structure and uses a profile-likelihood scan and permutation testing to detect change-points. In PARROT, a change-point corresponds to a time at which the SBM parameters shift: the community memberships (which genes and TFs belong to each module), the block connectivity (how strongly modules interact), or both. Key innovations include: (1) support for weighted bipartite networks, enabling analysis of transcription factor (TF)-to-gene regulatory networks; (2) joint estimation of change-point locations and community assignments; (3) Wild Binary Segmentation (Fryzlewicz, 2014) for multiple change-point detection; and (4) C++-accelerated Variational Expectation–Maximization (VEM) for computational efficiency.

We validate PARROT through comprehensive simulations and apply it to two biological network series: (1) a TF–gene network derived from scRNA-seq data obtained from a human induced pluripotent stem cell (hiPSC) cardiac differentiation series, and (2) a co-expression network series obtained from a mouse postnatal lung development experiment. Both applications demonstrate PARROT’s ability to reveal discrete network transitions with mechanistic interpretability.

2. Methods

2.1. Model formulation and inference

Let Y = {Y(1), … , Y(T)} denote an ordered sequence of T network snapshots, where each Y(t)∈RN1×N2 represents the adjacency matrix at time t. For unipartite networks, N1 = N2 = N; for bipartite networks, such as TF→gene regulatory networks (Glass et al., 2013) or SNP→gene eQTL networks (Platig et al., 2016), N1 ≠ N2.

Stochastic Block Model.

Each node is assigned to one of Q communities. The edge probability/weight between nodes in communities q and r is governed by block parameters γqr:

Yij(t)∣(Zi=q,Zj=r)∼f(⋅;γqr) (1)

where f is Gaussian (for weighted networks) or Bernoulli (for binary networks), and Zi denotes node i’s community assignment.

Change-Point Model.

Under the alternative hypothesis of a change point at time τ, networks follow SBM parameters θ1 for t ≤ τ and θ2 for t > τ, where for each segment k ∈ {1, 2} the parameter bundle θk = (πk, {γqr,k}) collects the mixing proportions πk and the block parameters γqr,k defined in Eq. (1) (γqr,k = μqr,k for Gaussian and γqr,k = pqr,k for Bernoulli networks):

logℒ(τ,θ1,θ2)=∑t=1τlogP(Y(t);θ1)+∑t=τ+1TlogP(Y(t);θ2) (2)

The change point is estimated as:

τ^=argmaxτ[maxθ1,θ2logℒ(τ,θ1,θ2)] (3)

Model fitting and approximation.

We fit SBMs using VEM and maximizing the Evidence Lower Bound (ELBO), which serves as a tractable surrogate for the intractable marginal log-likelihood (Supplementary Methods). For a candidate change-point τ, we evaluate the profile objective by summing ELBOs from the left and right segments and selecting the maximizer τ^. PARROT reports the split with the largest profile objective (best-supported partition), while local minima correspond to poorly supported splits. For temporally long sequences, PARROT also provides an optional score-based scan as a faster approximate alternative to full profile refitting (Supplementary Table S6; Supplementary Figure S3).

Profile likelihood confidence intervals.

Let ℓ(τ) denote the profiled objective at split τ (left-segment ELBO plus right-segment ELBO, each maximized over segment-specific SBM parameters), and let τ^=arg maxτℓ(τ). We form a likelihood-ratio-type confidence set by retaining indices that satisfy

2{ℓ(τ^)−ℓ(τ)}≤χ1,1−α2, (4)

or equivalently ℓ(τ)≥ℓ(τ^)−12χ1,1−α2. The degree of freedom is 1 because the scanned change-point location is one-dimensional. In our implementation, this is a large-sample chi-square cutoff approximation applied to a discrete split index and an ELBO surrogate (not the exact marginal log-likelihood), so that interval coverage should be interpreted as approximate in finite samples.

Likelihood Ratio Test and P-values.

Define the likelihood ratio statistic as

Λ=2{maxτ,θ1,θ2logℒ(τ,θ1,θ2)−maxθlogℒ(θ)}, (5)

where the first term is the maximized log-likelihood under the alternative (change at τ^) and the second is the null (no change). Because optimization is based on an ELBO surrogate rather than the exact marginal likelihood, we emphasize resampling-based p-values (permutation/bootstrap) for practical inference.

By default, we use a permutation test. We randomly permute the time labels of the observed networks to generate B null replicates {Yπb(t)}t=1T, refit the change-point model on each, and compute

pperm=1B∑b=1B1{Λ(b)≥Λobs}. (6)

Parametric bootstrap p-values are also available: we simulate networks from the fitted null SBM and compare Λobs to the bootstrap distribution of Λ. Both permutation and bootstrap tests require additional refits and do not provide exact finite-sample guarantees under all temporal dependence settings.

2.2. Multiple change-point search

For detecting multiple change-points, we use Wild Binary Segmentation (WBS) (Fryzlewicz, 2014). In implementation, WBS generates candidate split points from random intervals using ELBO-gain scans, then applies priority-ordered filtering with minimum-segment separation and a maximum-number-of-change-points constraint. This candidate-filtering strategy is practical and reproducible, but it is not a formal global error-rate controlling stopping rule. Additionally, PARROT supports Binary Segmentation (BS) and PELT (Pruned Exact Linear Time) (Killick et al., 2012) methods as alternative multiple change-point search strategies. Two candidate-scanning modes are available. The score scan performs a single global (null) SBM fit, freezes variational memberships, and precomputes cumulative block sufficient statistics; each candidate split τ is then scored by differencing these cumulative sums, giving O(1) updates per position without per-split variational refits. This acceleration is in the spirit of CUSUM-style cumulative-sum scanning (Page, 1954; Truong et al., 2020). The profile scan instead evaluates the profiled ELBO ℓ(τ) by refitting separate SBMs on the left and right segments at every candidate split, typically improving fidelity at higher computational cost. Practical guidance on scan-mode choice, CI interpretation, p-value assumptions, and sample-size/runtime tradeoffs is summarized in Supplementary Table S6.

2.3. Software implementation

PARROT is implemented in R with C++ acceleration via Rcpp. The core VEM algorithm achieves O(TNQ2) complexity per iteration. The package supports all four network types, automatic Q selection using Integrated Classification Likelihood (ICL), and multiple inference methods.

2.4. Simulated network construction

We generated a sequence of SBM snapshots with a single change-point τ* separating two parameter regimes, considering all four network classes supported by PARROT: unipartite/bipartite × Gaussian/Bernoulli. Across every class we used T = 10 time points, Q=2 communities, τ* = 5, and n = 20 replicates per configuration; node counts were N = 12 for unipartite and N1 × N2 = 8 × 10 for bipartite networks. These deliberately small/short settings (i) avoid ceiling effects so that competing methods retain non-trivial discrimination, and (ii) stress-test the ability of every method to recover a change with limited evidence per segment. Three transition families were simulated: (i) global mean shift (block parameters change uniformly while memberships are held fixed; relatively weak signal), (ii) community swap (block parameters held fixed while ~35% of nodes switch community membership), and (iii) mixed (a moderate global shift combined with ~30% community reassignment and rewiring). The exact block matrices, noise scales, shift magnitudes, and swap fractions are listed in Supplementary Table S1; the matching tolerance and other evaluation metrics are listed in Supplementary Table S2. To verify that PARROT’s underlying SBM fitting recovers parameters under static (no-CP) conditions on larger networks, we additionally ran N = 40 unipartite and 15 × 20 bipartite static simulations with T = 20 (Supplementary Figure S1).

2.5. Data preprocessing and network construction

The two real-data applications presented here analyze a series of networks derived from publicly available time course datasets archived in GEO (Edgar et al., 2002).

We used scRNA-seq data collected from a time course (GEO accession GSE202398) that profiled the WTC and SCVI111 hiPSC lines across 12 time points (days 0–7, 11, 13, 15, 30) that include a Day2-induced cardiac differentiation under a biphasic small-molecule WNT protocol (Galdos et al., 2023). Raw 10x gene expression matrices were demultiplexed using run-specific hashtag oligo metadata, per-sample cells were quality filtered based on feature count and mitochondrial fraction and these were then downsampled to balance snapshots. Using these data, we constructed an expanded WNT-focused bipartite feature set (25 TFs and 150 target genes) by selecting variance-ranked genes with cardiac-regulatory TF seeds, reducing sparsity and noise while preserving key developmental regulators. For each day, TF and target expression were standardized across cells, Spearman TF–target correlation edge weights were computed; these were transformed using the Fisher z transformation, z = atanh(r), and averaged across two cell lines to form one weighted bipartite network snapshot per day (T = 12). We analyzed this time-ordered network series using PARROT in single-CP mode. The protocol-defined reference CP is the WNT-activation to WNT-inhibition switch boundary (Day2→Day3), used as an external intervention-grounded reference.

As a second example, we chose a mouse postnatal lung development dataset (GEO accession GSE74243). We used processed RMA-normalized log2 microarray expression data from whole lung tissue across three strains, A/J, C57BL/6J, and C3H/HeJ (Beauchemin et al., 2016). We parsed strain and postnatal day from sample labels, mapped probes to gene symbols, and collapsed duplicates by mean expression. Building on the five postnatal molecular stages from Beauchemin et al. (2016)—ALV1 (P0–P3), ALV2 (P4–P5), ALV3 (P7–P13), ALV4 (P14–P18), and MAT (P21–P56)—we subdivided ALV3 and MAT to increase temporal resolution, yielding seven time points: T1=P0–P3, T2=P4–P5, T3=P7–P9, T4=P11–P13, T5=P14–P18, T6=P21–P24, T7=P30–P56. Reference boundaries include T = 5 (ALV4→MAT: onset of homeostatic mature expression) and potentially T = 2–4 (alveolarization plateau transitions). Importantly, these stages were defined via unsupervised PCA of expression levels (Beauchemin et al., 2016) and were thus independent of network inference and analysis; this PARROT-based analysis therefore tests whether co-expression network structure transitions align with expression-derived boundaries.

For each time point, we merged replicates across strains using ComBat (Johnson et al., 2007) and COBRA (Micheletti et al., 2024) to remove both first-order and second-order batch effects while preserving biological signal, thereby maximizing sample size, selected the top 100 most variable genes to construct the co-expression network, computed Spearman gene–gene correlations, and applied edge-quantile thresholding (q = 0.65) (sensitivity analyses appear in Supplementary Table S4) to obtain binary adjacency matrices. Because there were two possible change-points, we ran PARROT in multiple-CP mode.

Across real-data analyses, visualizations were generated with ggplot2, ggraph/tidygraph, and ggalluvial, and GO enrichment annotations used clusterProfiler (Wickham, 2016; Brunson, 2020; Yu et al., 2012).

3. Results

3.1. PARROT overview

PARROT takes as input a time-ordered sequence of networks represented as binary or weighted adjacency matrices from either unipartite or bipartite networks along with a specified number of communities Q (Figure 1). For each candidate change-point, PARROT partitions the series into pre- and post-transition segments, fits separate Stochastic Block Models (SBMs) via Variational Expectation–Maximization (VEM), and computes segment-wise Evidence Lower Bounds (ELBOs). The optimal change-point is identified as the split maximizing the summed profile log-likelihood across segments. Statistical significance is assessed through a permutation-based likelihood ratio test, which compares the observed improvement in fit against a null distribution obtained by shuffling time indices. Outputs include the detected change-point location with confidence intervals, community membership assignments for each phase, and estimated block connectivity parameters μ^qr that characterize within- and between-community edge probabilities. This framework allows identification of not only when network structure changes but also which modules undergo rewiring.

Figure 1. PARROT method overview.

Figure 1

(A) Pipeline schematic: input dynamic networks are processed through VEM-based SBM fitting, score or profile scanning, ELBO-based likelihood ratio testing, yielding detected change-points with community assignments. (B) Illustration of VEM estimated SBM block means μ^qr for the two phases, with true simulation values shown in parentheses. (C) Plot of the profile log-likelihood curve with detected change-point (blue solid), true change-point (red dashed), and a narrow symmetric 95% confidence interval centered on the detected split; candidate splits are scanned over indices 5–15 due to the minimum-segment constraint. (D) The permutation-null density of the likelihood-ratio (LR) test statistic, with observed LR (red line); the shaded right-tail area corresponds to the empirical permutation p-value. (E) Illustrative pre/post network visualization highlighting module-level rewiring.

3.2. Simulation benchmark

We first confirmed PARROT’s accuracy in recovering SBM parameters by simulating four supported network classes under static (no change-point) conditions with larger networks (Supplementary Figure S1). We then evaluated change-point detection performance against state-of-the-art methods across these network types (Table 1). To avoid ceiling effects and stress model fitting, we used smaller and shorter settings: N = 12 nodes (unipartite) or 8 × 10 nodes (bipartite), T = 10 time points, Q=2 communities, true change-point at t = 5, and n = 20 replicates per setting. We simulated three scenario families: (i) community-swap transitions with partial membership rewiring, (ii) weak global mean shift with fixed community assignments, and (iii) mixed transitions combining moderate global shift with partial rewiring. Change-point simulation parameters are listed in Supplementary Table S1 and evaluation metrics are listed in Supplementary Table S2.

Table 1.

Methods compared in the simulation study.

Method Type Community Recovery
PARROT SBM-based Yes
gSeg Graph-based No
ECP Energy-based No
Kernel-CPD MMD-based No
Subspace-CPD SVD+ECP No

PARROT demonstrated strong performance across all simulated scenarios and network types. Detection rates (percentage of replicates with at least one change-point detected within ±2 time points of the true boundary) showed clear separation across transition scenarios (Figure 2A): in community-swap and mixed scenarios, PARROT achieved 85–95% detection compared with 20–30% for gSeg and 50–70% for ECP; in global mean shift scenarios, detection rates decreased for all methods and performance gaps narrowed. F1 scores, which balance precision and recall, confirmed PARROT’s advantage across the four network types; for example, for unipartite Gaussian networks, PARROT achieved F1≈0.85 compared with <0.50 for gSeg (Figure 2B). Localization precision, measured by mean absolute error (MAE), showed that PARROT consistently achieved MAE<1 time point across community-swap and mixed scenarios, whereas competing methods often exceeded MAE>2 (Figure 2C). Exact-match rates revealed that PARROT most frequently recovered the true boundary at t = 5, achieving up to 80% exact detection in global mean shift versus 0–20% for competing methods; notably, ECP’s exact detection dropped substantially due to systematic one-time-point offsets (Figure 2D). Detailed per-method metrics are reported in Supplementary Tables S7-S19.

Figure 2. Simulation study.

Figure 2

(A) Detection rate (percentage of replicates with at least one detected change-point within ±2 time points) across global, community-swap, and mixed transition scenarios. (B) F1 score (mean ± s.d. over replicates) stratified by network type, computed from precision and recall of detected versus true change-points. (C) Mean absolute error (MAE; average distance between detected and true change-point indices) by scenario; lower values indicate more precise localization. (D) Exact detection rate heatmap (percentage of replicates recovering the true change-point at t = 5) across method–scenario–network combinations. Simulation settings: unipartite N = 12, bipartite 8 × 10, T = 10, true CP t = 5, n = 20 replicates per configuration; detailed scenario tables in Supplementary Tables S8-S19.

3.3. Human cardiac differentiation TF–gene networks

To evaluate PARROT on real biological data, we analyzed GSE202398 (Galdos et al., 2023; Omnibus, 2023), a hiPSC cardiac differentiation scRNA-seq dataset spanning 12 time points (Day0–Day7, Day11, Day13, Day15, Day30) across two cell lines (WTC and SCVI111) (Figure 3A). Following demultiplexing cells by hashtag oligos and performing per-sample quality control, we constructed pooled bipartite TF→gene networks per day by averaging Fisher-z-transformed cell line-specific Spearman TF–target associations (N1 = 25 TFs, N2 = 150 target genes) (See Methods for additional details).

Figure 3. Application of change-point detection to hiPSC cardiac differentiation TF–gene networks.

Figure 3

(A) Experimental design across 12 days with protocol phases (WNT activation then inhibition) and protocol-defined reference boundary Day2→Day3 (red dashed). (B) Profile log-likelihood in single-CP mode with detected CP (blue solid) and protocol reference CP (red dashed). (C) LR inference at the detected CP using a global full-series permutation null, with observed LR (dashed vertical line) and shaded right-tail empirical p-value area. (D) Gene Regulatory Network before and after the detected CP, with edges colored to highlight rewiring between phases (red = strengthened, blue = weakened) and nodes filled by their post-CP community assignment (color legend); built from top rewired targets after dropping isolates and retaining the largest connected component. (E) CP detection across five methods (PARROT, gSeg, ECP, Kernel-CPD, Subspace-CPD) against the protocol-defined reference boundary, with all methods constrained to single-CP output for fairness.

We used PARROT in single-CP mode with Q=4 communities (selected by ICL; Supplementary Figure S2). PARROT identified a change-point at Day2→Day3, matching the protocol-defined WNT switch boundary (Figure 3B) (Galdos et al., 2023). This change-point was statistically significant under a full-series permutation null (Permutation p = 0.008; Figure 3C). Figure 3D shows the strongest rewiring events (top rewired targets, edge changes above the 70th percentile, largest component only), revealing biologically coherent shifts: WNT-axis regulators (TCF/LEF, SMAD) alter connectivity with mesoderm markers (MESP1, EOMES) and early cardiac genes (GATA4, NKX2-5), consistent with the Day2→Day3 transition from WNT activation to inhibition.

Comparison across five methods showed that PARROT was the only method to identify the protocol-defined Day2→Day3 boundary when all methods were constrained to single-CP output (Figure 3E); competing methods detected change-points at various times and none recovered the true transition.

3.4. Mouse postnatal lung development co-expression networks

To assess PARROT’s performance on unipartite co-expression networks with multiple candidate boundaries, we used GEO series GSE74243 (Beauchemin et al., 2016; Omnibus, 2023), which profiles postnatal mouse lung transcriptomes across three strains during early development; Figure 4A shows seven pooled time points aligned to the original molecular staging. We constructed unipartite co-expression networks by computing pairwise Spearman correlations among the top 100 variable genes, thresholding at quantile q = 0.65 to obtain binary adjacency matrices. Model selection favored Q=6 communities based on ICL diagnostics (Supplementary Figure S2). We then ran PARROT in multiple-CP mode (max K = 2) to test whether we could identify the biologically defined reference boundary from the original study, T5→T6 (ALV4→MAT) and to test whether additional within-alveolarization candidate transitions are detectable.

Figure 4. Application to mouse postnatal lung development co-expression networks.

Figure 4

(A) Seven-time-point design aligned to postnatal staging, with one reference boundary of red dashed line (T5 → T6) and lighter dashed lines marking additional candidate boundaries (T2 → T3, T3 → T4, T4 → T5). (B) WBS score-scan split gain across feasible boundaries, labeled as Ti → Ti+1. With min_segment = 2 and T5 → T6 selected first by gain, T4 → T5 is excluded by spacing and T3 → T4 is selected as the second candidate. (C) Direct per-CP permutation significance for detected CPs using permutation tests (nperm = 500), shown as grouped raw and Bonferroni-adjusted −log10(p) bars; T5 → T6 has the stronger raw signal and remains significant after Bonferroni adjustment. (D) Two-stage Sankey across the T5 → T6 transition (Alveolarization→Mature Lung), with strata labeled by functional enrichment terms selected from GO (BP/CC/MF) using all genes per module. (E) CP detection across five methods (PARROT, gSeg, ECP, Kernel-CPD, Subspace-CPD) against the single reference boundary T5 → T6.

PARROT identified T5→T6 as its top candidate change-point, consistent with biological expectations. In the multiple-CP WBS filtering step, we use min_segment = 2. Because T5→T6 was selected first (largest split gain), the adjacent split at T4→T5 is excluded by the spacing constraint, and T3→T4 was selected as a second candidate. Under direct per-CP global permutation testing (nperm = 500), T5→T6 showed the stronger raw signal (raw p = 0.024) than T3→T4 (raw p = 0.214), and T5→T6 remained significant after Bonferroni adjustment (adjusted p = 0.048; Figure 4B-C).

Given the strong statistical support for T5→T6, we characterized module rewiring across this transition using a two-stage Sankey diagram (Alveolarization→Mature Lung; Figure 4D). Functional enrichment of module genes using clusterProfiler (GO BP/CC/MF) revealed substantial overlap between ALV and MAT modules, consistent with continuity between late alveolarization and early mature homeostasis. This pattern indicates rewiring within shared functional programs—particularly extra-cellular matrix (ECM) remodeling and vascular development associated with postnatal septation and capillary maturation (Beauchemin et al., 2016)—rather than wholesale replacement of module function. In method comparison, PARROT detected the T5→T6 while gSeg found the secondary T4→T5 and the other methods failed to identify a change-point (Figure 4E).

4. Discussion

4.1. Main findings

PARROT addresses a critical gap in network change-point detection: the joint estimation of transition timing and community structure. Although several competing methods perform reasonably well in terms of change-point detection accuracy in some settings (Figure 2), the comparison is not apples-to-apples because the methods are detecting fundamentally different signals. A two-stage workflow—apply a change-point method to a network summary and then run Louvain clustering on each resulting segment—selects change points that optimize a global topological summary (such as edge count, kernel distance, spectral statistic) and only describes communities after the fact. PARROT instead selects the change-point that best reflects a change in community structure: the profile objective rewards splits at which segment-specific SBMs jointly fit the observed snapshots better than a single shared SBM. This shift is more than wording; it lets PARROT recover the change-point that captures the cell’s transition between distinct modular regulatory programs (Kashtan and Alon, 2005), for example, when the cell reorganizes which genes serve which regulatory module. This interpretability—identifying the modules whose connectivity is rewired —is essential for translational applications where researchers need actionable targets. In this sense, PARROT directly speaks to our intuition about changes in biological state being linked to alterations in regulatory network community structure to activate or repress specific biological functions.

The two biological applications highlight PARROT’s ability to operate across distinct network architectures while delivering interpretable results. In the cardiac differentiation study (bipartite Gaussian; Figure 3), PARROT not only recovered the protocol-defined Wnt-switching boundary at Day2→Day3 but also revealed the specific TF–gene modules undergoing rewiring—information inaccessible to methods that treat networks as unstructured objects. The mouse lung development analysis (unipartite binary; Figure 4) further demonstrated PARROT’s capacity for multiple change-point inference, pinpointing T5→T6 as the statistically dominant transition even after Bonferroni correction and linking it to ECM remodeling and vascular maturation programs.

4.2. Limitations and future directions

PARROT requires specification of the number of communities Q although it supports ICL-based model selection to identify a likely number of communities. The method also assumes an underlying block structure with reasonably distinct modules, which may not hold for all networks. By design, PARROT detects structural changes in community connectivity rather than global mean shifts; consequently, scenarios involving only weak homogeneous signal changes fall outside its intended scope. For exploratory analyses where community structure is not required, distribution-free methods such as gSeg remain excellent alternatives.

As in all change-point methods, estimation variance increases near the beginning and end of the time-course sequence, where one segment is necessarily short (Andrews, 1993; Bai and Perron, 1998). This issue is amplified when T is small and WBS recursively subdivides the series (Fryzlewicz, 2014), because fitting an SBM with Q communities requires estimating O(Q2) block parameters (Daudin et al., 2008; Celisse et al., 2012); if the resulting segments are too short relative to Q, parameter estimates and community assignments become unstable. PARROT’s permutation test partially mitigates this problem because each permutation replicate applies the same LR construction—null SBM versus two segment-specific SBMs at a fixed split—to time-shuffled data, finite-sample fitting variability enters both the observed statistic and the reference distribution, providing better-calibrated significance assessment. Nonetheless, community assignments from very short segments should be interpreted with caution, and practitioners may need to reduce Q or increase temporal resolution when the number of timepoints, T, is limited.

PARROT assumes the same number of communities Q before and after the change point, while allowing memberships and interaction parameters to vary across segments. This preserves the nested SBM structure required for the likelihood-ratio test in Eq. (5). PARROT therefore detects two kinds of change-point: community reorganization, where genes or TFs are reassigned across modules so that module composition and size change (Figure 4D), and edge rewiring, where the same nodes connect differently across modules (in Figure 3D, similar target genes are regulated by a different set of TFs after the transition). Extending the framework to allow Q1≠Q2 is left for future work.

Compatible regulatory-network methods.

PARROT operates on a sequence of network snapshots and is agnostic to how each snapshot is constructed, provided that edge weights are approximately Gaussian or that edges are coded as Bernoulli presence/absence after thresholding. Methods that fit naturally into the Gaussian variant after standard transformations include Pearson/Spearman co-expression with Fisher-z on the correlations, WGCNA (Langfelder and Horvath, 2008) after soft-thresholding (treat the topological-overlap matrix entries as weights), ARACNe mutual-information networks (Margolin et al., 2006) after rank or log transformation of the MI scores, PANDA TF→gene message-passing scores (Glass et al., 2013), Inferelator regression weights (Bonneau et al., 2006) after Fisher-z, and CLR/GENIE3 importance scores (Huynh-Thu et al., 2010). SCENIC’s regulon AUCell matrices (Aibar et al., 2017) are best handled in the Bernoulli variant after binarizing AUCell activity.

Scalability and the small-N regime.

The biological time series networks we analyzed deliberately use small node counts (N = 25 × 150 for the cardiac bipartite TF–gene network and N = 100 for the lung co-expression network) and short sequences (T ≤ 12), reflecting the typical resolution of public time-resolved GEO datasets. PARROT’s per-iteration VEM cost is O(TNQ2) per segment and WBS adds O(M) random-interval scans; memory is O(N2T) for the cumulative sufficient statistics. Empirically, end-to-end runs on N ~200, T ~20 complete in seconds-to-minutes on a laptop; for N ~ 103 we recommend the score-scan mode (Supplementary Table S6) and consider sparse-edge thresholding before fitting. Very large regulatory networks (N ≫ 103) will benefit from degree-corrected SBMs and stochastic-VEM updates, which we leave as future work.

Supplementary Material

Supplement 1
media-1.pdf (369.2KB, pdf)

Supplementary data are available at Bioinformatics online.

Acknowledgements

The authors thank Viola Fanfani, Katherine H. Shutta, Camila Lopes-Ramos, Marouen Ben Guebila, and Jonas Fischer for discussions regarding the method.

Funding

CC and JQ were supported by funding from the US National Cancer Institute (R35CA220523) and the National Human Genome Research Institute (R01HG011393). MP was supported by the US National Cancer Institute (R01CA251729).

Footnotes

Conflict of interest

The authors declare no competing interests.

Data availability

PARROT is available at https://github.com/cchen22/PARROT and https://github.com/netZoo/netZooR (Ben Guebila et al., 2023). Processed outputs used to generate manuscript figures are included in this repository; source GEO accession identifiers for real-data analyses are reported in the Methods section.

References

  1. Aibar S., González-Blas C. B., Moerman T., Huynh-Thu V. A., Imrichova H., Hulselmans G., Rambow F., Marine J.-C., Geurts P., Aerts J., et al. SCENIC: single-cell regulatory network inference and clustering. Nature Methods, 14(11):1083–1086, 2017. doi: 10.1038/nmeth.4463. [DOI] [PMC free article] [PubMed] [Google Scholar]
  2. Andrews D. W. K.. Tests for parameter instability and structural change with unknown change point. Econometrica, 61(4):821–856, 1993. [Google Scholar]
  3. Bai J. and Perron P.. Estimating and testing linear models with multiple structural changes. Econometrica, 66(1):47–78, 1998. [Google Scholar]
  4. Barabási A.-L. and Oltvai Z. N.. Network biology: understanding the cell’s functional organization. Nature Reviews Genetics, 5(2):101–113, 2004. [DOI] [PubMed] [Google Scholar]
  5. Beauchemin K. J., Wells J. M., Kho A. T., Philip V. M., Kamir D., Kohane I. S., Graber J. H., and Bult C. J.. Temporal dynamics of the developing lung transcriptome in three common inbred strains of laboratory mice reveals multiple stages of postnatal alveolar development. PeerJ, 4: e2318, 2016. doi: 10.7717/peerj.2318. [DOI] [PMC free article] [PubMed] [Google Scholar]
  6. Ben Guebila M., Wang T., Lopes-Ramos C. M., Fanfani V., Weighill D., Burkholz R., Schlauch D., Paulson J. N., Altenbuchinger M., Shutta K. H., et al. The network zoo: a multilingual package for the inference and analysis of gene regulatory networks. Genome Biology, 24(1):45, 2023. [DOI] [PMC free article] [PubMed] [Google Scholar]
  7. Bonneau R., Reiss D. J., Shannon P., Facciotti M., Hood L., Baliga N. S., and Thorsson V.. The Inferelator: an algorithm for learning parsimonious regulatory networks from systems-biology data sets de novo. Genome Biology, 7(5):R36, 2006. doi: 10.1186/gb-2006-7-5-r36. [DOI] [PMC free article] [PubMed] [Google Scholar]
  8. Brunson J. C.. ggalluvial: Layered grammar for alluvial plots. Journal of Open Source Software, 5(49):2017, 2020. doi: 10.21105/joss.02017. [DOI] [PMC free article] [PubMed] [Google Scholar]
  9. Celisse A., Daudin J.-J., and Pierre L.. Consistency of maximum-likelihood and variational estimators in the stochastic block model. Electronic Journal of Statistics, 6:1847–1899, 2012. [Google Scholar]
  10. Chen H., Zhang N. R., Chu L., and Song H.. Graph-based change-point detection. The Annals of Statistics, 48(1):389–414, 2020. [Google Scholar]
  11. Daudin J.-J., Picard F., and Robin S.. A mixture model for random graphs. Statistics and Computing, 18(2):173–183, 2008. [Google Scholar]
  12. Edgar R., Domrachev M., and Lash A. E.. Gene expression omnibus: Ncbi gene expression and hybridization array data repository. Nucleic Acids Research, 30(1):207–210, 2002. doi: 10.1093/nar/30.1.207. [DOI] [PMC free article] [PubMed] [Google Scholar]
  13. Fryzlewicz P.. Wild binary segmentation for multiple change-point detection. The Annals of Statistics, 42(6):2243–2281, 2014. [Google Scholar]
  14. Galdos F. X., Lee C., Lescroart F., Park S., Gao W., Xin S., Spence T., Edwards G., Dewey A., Bertero A., et al. Combined lineage tracing and scrna-seq reveals unexpected first heart field predominance of human ipsc differentiation. eLife, 12:e80075, 2023. doi: 10.7554/eLife.80075. [DOI] [PMC free article] [PubMed] [Google Scholar]
  15. Glass K., Huttenhower C., Quackenbush J., and Yuan G.-C.. Passing messages between biological networks to refine predicted interactions. PloS one, 8(5):e64832, 2013. [DOI] [PMC free article] [PubMed] [Google Scholar]
  16. Holland P. W., Laskey K. B., and Leinhardt S.. Stochastic blockmodels: First steps. Social Networks, 5(2):109–137, 1983. [Google Scholar]
  17. Huynh-Thu V. A., Irrthum A., Wehenkel L., and Geurts P.. Inferring regulatory networks from expression data using tree-based methods. PLOS ONE, 5(9):e12776, 2010. doi: 10.1371/journal.pone.0012776. [DOI] [PMC free article] [PubMed] [Google Scholar]
  18. James N. A. and Matteson D. S.. ecp: An r package for nonparametric multiple change point analysis of multivariate data. Journal of Statistical Software, 62(7):1–25, 2015. [Google Scholar]
  19. Johnson W. E., Li C., and Rabinovic A.. Adjusting batch effects in microarray expression data using empirical bayes methods. Biostatistics, 8(1):118–127, 2007. doi: 10.1093/biostatistics/kxj037. [DOI] [PubMed] [Google Scholar]
  20. Karlebach G. and Shamir R.. Modelling and analysis of gene regulatory networks. Nature reviews Molecular cell biology, 9 (10):770–780, 2008. [DOI] [PubMed] [Google Scholar]
  21. Karrer B. and Newman M. E.. Stochastic blockmodels and community structure in networks. Physical Review E, 83(1):016107, 2011. [DOI] [PubMed] [Google Scholar]
  22. Kashtan N. and Alon U.. Spontaneous evolution of modularity and network motifs. Proceedings of the National Academy of Sciences, 102(39):13773–13778, 2005. doi: 10.1073/pnas.0503610102. [DOI] [PMC free article] [PubMed] [Google Scholar]
  23. Killick R., Fearnhead P., and Eckley I. A.. Optimal detection of changepoints with a linear computational cost. Journal of the American Statistical Association, 107(500):1590–1598, 2012. [Google Scholar]
  24. Langfelder P. and Horvath S.. WGCNA: an R package for weighted correlation network analysis. BMC Bioinformatics, 9(1):559, 2008. [DOI] [PMC free article] [PubMed] [Google Scholar]
  25. Liu F., Choi D., Xie L., and Roeder K.. Global spectral clustering in dynamic networks. Proceedings of the National Academy of Sciences, 115(5):927–932, 2018. doi: 10.1073/pnas.1718449115. [DOI] [PMC free article] [PubMed] [Google Scholar]
  26. Margolin A. A., Nemenman I., Basso K., Wiggins C., Stolovitzky G., Dalla Favera R., and Califano A.. ARACNE: an algorithm for the reconstruction of gene regulatory networks in a mammalian cellular context. BMC Bioinformatics, 7(Suppl 1):S7, 2006. doi: 10.1186/1471-2105-7-S1-S7. [DOI] [PMC free article] [PubMed] [Google Scholar]
  27. Micheletti S., Schlauch D., Quackenbush J., and Ben Guebila M.. Higher-order correction of persistent batch effects in correlation networks. Bioinformatics, 40(9):btae531, 2024. doi: 10.1093/bioinformatics/btae531. [DOI] [PMC free article] [PubMed] [Google Scholar]
  28. Omnibus N. G. E.. Gse202398: Combined lineage tracing and scrna-seq reveals unexpected first heart field predominance of human ipsc differentiation. https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE202398, 2023. Accessed 2026-02-19. [DOI] [PMC free article] [PubMed] [Google Scholar]
  29. Padi M. and Quackenbush J.. Detecting phenotype-driven transitions in regulatory network structure. NPJ systems biology and applications, 4(1):16, 2018. [DOI] [PMC free article] [PubMed] [Google Scholar]
  30. Page E. S.. Continuous inspection schemes. Biometrika, 41 (1/2):100–115, 1954. doi: 10.2307/2333009. [DOI] [Google Scholar]
  31. Park J. H. and Sohn Y.. Networkchange: Bayesian package for network changepoint analysis. R package version 0.8, 2022. CRAN. [Google Scholar]
  32. Platig J., Castaldi P., DeMeo D., and Quackenbush J.. Bipartite community structure of eqtls. PLoS Computational Biology, 12(9):e1005033, 2016. [DOI] [PMC free article] [PubMed] [Google Scholar]
  33. Schlitt T. and Brazma A.. Current approaches to gene regulatory network modelling. BMC bioinformatics, 8(Suppl 6):S9, 2007. [DOI] [PMC free article] [PubMed] [Google Scholar]
  34. Truong C., Oudre L., and Vayatis N.. Selective review of offline change point detection methods. Signal processing, 167:107299, 2020. [Google Scholar]
  35. Wickham H.. ggplot2: Elegant Graphics for Data Analysis. Springer-Verlag; New York, 2016. ISBN 978-3-319-24277-4. [Google Scholar]
  36. Yu G., Wang L.-G., Han Y., and He Q.-Y.. clusterprofiler: an r package for comparing biological themes among gene clusters. OMICS: A Journal of Integrative Biology, 16(5):284–287, 2012. doi: 10.1089/omi.2011.0118. [DOI] [PMC free article] [PubMed] [Google Scholar]

Associated Data

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

Supplementary Materials

Supplement 1
media-1.pdf (369.2KB, pdf)

Data Availability Statement

PARROT is available at https://github.com/cchen22/PARROT and https://github.com/netZoo/netZooR (Ben Guebila et al., 2023). Processed outputs used to generate manuscript figures are included in this repository; source GEO accession identifiers for real-data analyses are reported in the Methods section.


Articles from bioRxiv are provided here courtesy of Cold Spring Harbor Laboratory Preprints

RESOURCES