← Về thư mục
📄 / / profiles / r-and-d / raw_evidence / OpenAI4S / skills / bioskills / bio-temporal-genomics-temporal-grn / references / usage-guide.md

Temporal Gene Regulatory Network Inference - Usage Guide

Overview

Bulk temporal GRN inference turns a time course into a RANKED LIST OF HYPOTHESES about directed TF->target regulation, not validated causal edges. Granger causality tests predictive precedence (not mechanism) and collapses under unobserved common drivers (an unmeasured TF, or a shared circadian oscillation driving both genes), under sampling coarser than the minutes-scale of transcription, and under the non-stationary transients that are the actual biology of interest. dynGENIE3 gives an importance ranking with no p-values and rests on noise-amplifying finite-difference derivatives. Dynamic Bayesian networks can represent feedback (their real edge over static Bayesian networks) but are first-order Markov and capped at tens of nodes. Community benchmarks show this whole class is low-precision and that no single method wins, so the defensible workflow restricts regulators to known TFs, runs more than one method, keeps edges recovered by multiple methods and stable across replicates, matches density before comparing conditions, and hands the top edges to perturbation experiments.

Prerequisites

Python

pip install statsmodels pandas numpy networkx matplotlib

R

install.packages('bnlearn')
devtools::install_github('vahuynh/dynGENIE3/dynGENIE3R')

Data Requirements

Quick Start

Tell the AI agent what to infer: - "Infer regulatory relationships between my TFs and targets from time-series expression data" - "Run Granger causality to find time-delayed gene regulation, with proper multiple-testing" - "Build a dynamic gene regulatory network from my temporal RNA-seq data" - "Compare regulatory networks between conditions and tell me which edges are real rewiring"

Example Prompts

Granger Causality

"I have 20 timepoints of RNA-seq data. Test Granger causality between my transcription factors and target genes, selecting the lag by BIC and controlling FDR across pairs."

"Run pairwise Granger causality on my time-series expression, but only TF->target pairs, and tell me honestly whether my 8 timepoints have enough power."

dynGENIE3

"Use dynGENIE3 to infer a gene regulatory network from my time-series expression with a known TF regulator list."

"I have 3 biological replicates of a developmental time course. Run dynGENIE3 and rank the key regulators."

Dynamic Bayesian Networks

"Learn a dynamic Bayesian network from my temporal expression using hill-climbing with BIC, restricted to t-1 to t edges."

"Bootstrap a dynamic Bayesian network to find confidently oriented regulatory edges among my TFs and targets."

Network Comparison

"Compare the regulatory networks between treated and control time courses at matched edge density. Which edges are genuinely gained or lost?"

"Track network rewiring across my developmental stages and separate real changes from near-threshold flips."

What the Agent Will Do

  1. Load the time-series expression matrix and TF list, and verify the columns are in temporal order.
  2. For Granger, difference all genes uniformly to approach stationarity and check the degrees-of-freedom floor.
  3. Run the selected inference method: Granger (BIC-selected lag, single test per pair, BH across pairs), dynGENIE3 (RF ensemble on ODE derivatives, regulators restricted to TFs), or a DBN (hill-climbing with a t-1 to t blacklist plus bootstrap edge confidence).
  4. Filter edges by q-value, importance rank, or bootstrap strength/direction.
  5. Build a directed adjacency matrix and, if requested, compare conditions at matched edge density.
  6. Frame the output as a ranked hypothesis list for perturbation, stating the confounding and sampling caveats.

Tips