How ohlerlab/liam works
Project type and purpose
• This is an open‑source Python library (liam) implementing an adversarial variational autoencoder for multimodal single‑cell data integration (scRNA‑seq, scATAC‑seq, ADT/CITE‑seq).
• It provides a programmatic API, tutorials, unit tests, and Sphinx‑based documentation.
File structure
• Top‑level modules and files:
• liam/ : the core Python package
– _mymodel.py : neural network definitions (encoders, decoders)
– _mymodule.py : wrapper around scvi‑tools Module, integrates adversarial and VAE patterns
– _trainingplans.py : training routines, loss functions, gradient reversal layer integration
• docs/ : Sphinx docs, templates, autogenerated API reference
• tutorials/ : example Jupyter notebooks and sample data
• tests/ : unit tests (basic skeleton test)
• config/build: pyproject.toml, setup.py, liam_dependencies.yml, CI config (codecov.yml, readthedocs.yml)
• THIRD‑PARTY‑LICENSES/: licenses for scvi‑tools, scvi‑tools‑skeleton, DANN, BAVARIA translation
• Patterns:
• Modular code separating model definition, training, and data setup
• Uses scvi‑tools skeleton for VAE infrastructure
• Integrates a gradient reversal layer (domain adversarial) for batch correction
README for additional insights
• Confirms the use of PyTorch and scvi‑tools as the base framework
• Highlights negative binomial reconstruction loss translated from BAVARIA
• Details GPU/CUDA environment and how to install via conda + pip
• Mentions tutorials for paired and mosaic integration
Final recommendations
• Layers: user entry point, core code, external libraries, documentation, deployment
• Don’t omit the adversarial path—show the gradient reversal layer’s role