Quick Start Guide
This tutorial will get you started with FADVI in just a few minutes.
Installation
First, install FADVI:
pip install fadvi
Basic Usage
Import libraries
import fadvi
import scanpy as sc
Load data
# Load your data
adata = sc.read_h5ad("your_data.h5ad")
Initialize and train the model
fadvi.FADVI.setup_anndata(adata,
batch_key="batch",
labels_key="cell_type",
unlabeled_category="Unknown",
layer="counts"
)
# Create FADVI model
model = fadvi.FADVI(adata)
# Train the model
model.train(max_epochs=30)
Get results
# Get latent representation
latent = model.get_latent_representation()
adata.obsm["X_fadvi_l"] = latent
Next Steps
Learn more about the Basic Usage workflow
Explore Advanced Usage features
Check out the API Reference for detailed parameter descriptions