scHopfield Documentation
Single-cell Hopfield Network Analysis
Welcome to scHopfield’s documentation! This package provides comprehensive tools for analyzing single-cell RNA-seq data using Hopfield network models.
Overview
scHopfield models gene regulatory networks (GRNs) as continuous Hopfield networks, where gene expression dynamics follow:
Key components:
W: Interaction matrix encoding gene-gene regulatory relationships
σ(x): Sigmoid activation function fitted to expression data
γ: Degradation rates (mRNA decay)
I: Bias vector representing external inputs/basal expression
This formulation enables:
Energy landscapes that quantify cellular state stability
Jacobian analysis for local stability and bifurcation detection
Network topology analysis via centrality metrics and eigenanalysis
Trajectory simulation for perturbation experiments and cell fate prediction
Key Features
Core Functionality
Preprocessing: Sigmoid function fitting to gene expression distributions
Network Inference: Learn interaction matrices from RNA velocity
Energy Landscapes: Compute and decompose into interaction, degradation, and bias components
Network Analysis
Topology Analysis: Centrality metrics (degree, betweenness, eigenvector)
Eigenanalysis: Eigenvalue decomposition of interaction matrices
Network Comparison: Compare GRN structures across cell types
GRN Visualization: Interactive network graphs
Stability & Dynamics
Jacobian Analysis: Compute Jacobian matrices at each cell state
Stability Metrics: Eigenvalue spectra, trace, rotational components
Trajectory Simulation: Simulate gene expression dynamics
Perturbation Analysis: In-silico gene knockouts and overexpression
Visualization
Energy plots: Landscapes, boxplots, scatter plots
Network plots: Interaction matrices, GRN graphs, centrality rankings
Stability plots: Jacobian eigenvalue spectra, partial derivatives on UMAP
Dynamics plots: Trajectory visualization
Contents
Getting Started
User Guide & Examples
- Getting Started with scHopfield
- Network Inference
- Preprocessing
- Energy Analysis
- Visualization
- Network Analysis
- Stability Analysis
- Perturbation Analysis
- Dynamics Simulation
- Lineage Drivers
- Extended Perturbation
- Package vs Notebook: Methods Classification
- Section D: Dose-Response Curves
- Section G: Stat3 Tier Classification via Differential Expression
- Section H: Recipe Double KO — Anchored Partner Selection
- Section I: STAT Family Regulatory Circuit via W^c Inspection
- Section F: Future Work
- Summary of Key Findings
- Section A (revised): Stat3 KO Perturbation Flow
- Section B (revised): Short-time Cascade Timing
- Section C (new): TF KO Lineage Bias Ranking
- Section D (new): Cluster-level ΔX at Convergence
- Figure Assembly
API Reference
Additional Information