Package: CellODE 1.0.0

CellODE: Cellular Dynamics Inference Using Neural ODE

An R implementation for single-cell trajectory inference using Variational Autoencoder (VAE) and Neural Ordinary Differential Equations (Neural ODE). CellODE automatically infers cellular dynamics from single-cell RNA sequencing data, providing pseudotime estimation, latent space representation, and vector field analysis. The package is designed for seamless integration with Seurat objects and supports both Seurat V4 and V5.

Authors:Zaoqu Liu [aut, cre]

CellODE_1.0.0.tar.gz
CellODE_1.0.0.zip(r-4.7-x86_64)CellODE_1.0.0.zip(r-4.7-arm64)CellODE_1.0.0.zip(r-4.6-x86_64)CellODE_1.0.0.zip(r-4.6-arm64)
CellODE_1.0.0.tgz(r-4.6-x86_64)CellODE_1.0.0.tgz(r-4.6-arm64)
CellODE_1.0.0.tar.gz(r-4.7-arm64)CellODE_1.0.0.tar.gz(r-4.7-x86_64)CellODE_1.0.0.tar.gz(r-4.6-arm64)CellODE_1.0.0.tar.gz(r-4.6-x86_64)
CellODE_1.0.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION
card.svg |card.png
CellODE/json (API)

# Install 'CellODE' in R:
install.packages('CellODE', repos = c('https://zaoqu-liu.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/zaoqu-liu/cellode/issues

Pkgdown/docs site:https://zaoqu-liu.github.io

Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3
  • openmp– GCC OpenMP (GOMP) support library

On CRAN:

Conda:

openblascppopenmp

3.30 score 1 stars 4 scripts 23 exports 33 dependencies

Last updated from:d163c8cf85 (on main). Checks:10 NOTE, 2 OK, 3 FAIL. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64NOTE215
linux-devel-x86_64NOTE254
source / vignettesOK300
linux-release-arm64NOTE214
linux-release-x86_64NOTE248
macos-release-arm64NOTE217
macos-release-x86_64NOTE363
macos-oldrel-arm64FAIL113
macos-oldrel-x86_64FAIL243
windows-devel-arm64NOTE322
windows-devel-x86_64NOTE242
windows-release-arm64NOTE309
windows-release-x86_64NOTE207
windows-oldrel-x86_64FAIL97
wasm-releaseOK194

Exports:cosine_similarityextract_expressionl2_normload_modellog_nblog_zinbMakeDatasetnormal_klodeintplot_lossplot_pseudotimeplot_vector_fieldpredict_latentsppredict_ltsp_from_timepredict_timepredict_vector_fieldreverse_timesplit_datasplit_indexTNODETrainervector_field_embeddingvector_field_embedding_grid

Dependencies:bitbit64callrclicorocpp11descfarverggplot2gluegtableisobandjsonlitelabelinglatticelifecyclemagrittrMatrixotelprocessxpsR6RColorBrewerRcppRcppArmadillorlangS7safetensorsscalestorchvctrsviridisLitewithr

Algorithm Theory: Neural ODE for Cellular Dynamics
Introduction | Mathematical Framework | Problem Formulation | Model Architecture | Encoder Network | Time Inference | Latent Space Inference | Neural ODE | Continuous Dynamics | Integration | ODE Function Architecture | Decoder Network | Reconstruction Likelihood | 1. Negative Binomial (NB) | 2. Zero-Inflated Negative Binomial (ZINB) | 3. Mean Squared Error (MSE) | Loss Function | Components | Time Direction Determination | Demonstration | Key Innovations | 1. Automatic Time Inference | 2. Continuous Dynamics | 3. Unified Framework | References | Session Info

Last update: 2026-01-25
Started: 2026-01-25

Advanced Usage and Best Practices
Introduction | Hyperparameter Tuning | Latent Space Dimensionality | ODE Network Architecture | VAE Network Architecture | Loss Function Selection | Loss Weight Balancing | Training Configuration | Learning Rate Scheduling | Batch Size and Epochs | Data Subsampling | Handling Complex Trajectories | Branching Trajectories | Cyclic Trajectories | Prediction on Query Data | Coarse vs Fine Mode | Predicting Future States | Integration with Seurat Workflows | Adding Results to Seurat Object | Downstream Analysis | Performance Optimization | GPU Acceleration | Memory Management | Batched Inference | Model Persistence | Saving and Loading | Model Inspection | Troubleshooting | Training Issues | Quality Issues | Memory Issues | Reproducibility | Best Practices Summary | Session Info

Last update: 2026-01-25
Started: 2026-01-25

Getting Started with CellODE
Introduction | Installation | From R-universe (Recommended) | From GitHub | Basic Workflow | 1. Load Libraries | 2. Prepare Data | 3. Create and Train Model | 4. Extract Pseudotime | 5. Get Latent Space | 6. Compute Vector Field | 7. Save Model | Quick Example with Synthetic Data | Parameter Guidelines | Loss Mode Selection | Latent Dimensions | Next Steps | Session Info

Last update: 2026-01-25
Started: 2026-01-25

Vector Field Analysis and Visualization
Introduction | Quick Start: Using CellODE Functions | Create Example Data | Simulate CellODE Model Output | Vector Field Computation with CellODE | Step 1: Compute Cosine Similarity | Step 2: Compute Embedding Velocity | Step 3: Grid-Based Vector Field | Visualization with CellODE | Plot Pseudotime with Direction Arrows | Plot Vector Field - Grid Mode | Plot Vector Field - Stream Mode | Plot Vector Field - Raw Mode | Customization Options | Arrow Styling | Clean Publication Figure | Mathematical Background | From Latent Dynamics to Velocity | Cosine Similarity | Transition Probability | Embedding Velocity | Comparison with RNA Velocity | Best Practices | 1. Neighbor Selection | 2. Visualization Density | 3. Self-Transition | Summary | Session Info

Last update: 2026-01-25
Started: 2026-01-25