API Reference

This section provides detailed API documentation for all gedi2py modules and functions.

Overview

gedi2py is organized into modules following the scanpy convention:

Module

Description

gedi2py

Top-level imports (GEDIModel, settings, I/O functions)

gedi2py.tl

Tools for model training, projections, embeddings, and analysis

gedi2py.pl

Plotting functions for visualization

gedi2py.io

Input/output for data and models

Import Convention

import gedi2py as gd

# Access modules
gd.tl.gedi(...)        # Tools
gd.pl.embedding(...)   # Plotting
gd.io.read_h5ad(...)   # I/O

# Or import directly
from gedi2py import GEDIModel
from gedi2py import settings

Quick Reference

Core

  • GEDIModel - Main model class for GEDI analysis

Tools (gd.tl)

Model Training

  • gedi() - Run GEDI batch correction

Projections

Embeddings

  • svd() - Compute SVD on GEDI embedding

  • pca() - Compute PCA on GEDI embedding

  • umap() - Compute UMAP on GEDI embedding

Imputation

Differential Expression

Pathway Analysis

Dynamics

Plotting (gd.pl)

Embedding Plots

Convergence Plots

Feature Plots

I/O (gd.io)

Reading

Writing

Model Persistence