Lumen for anndata and scanpy
Project description
✨ lumen-anndata
https://github.com/user-attachments/assets/836f0699-6379-4314-a861-7e3729d66f48
Overview
lumen-anndata is an extension to enable Lumen to interact with anndata objects, a common format for single-cell genomics data. It aims to allow researchers to use natural language to explore, analyze, and visualize complex single-cell datasets through a chat interface.
Features
lumen-anndata supports the following capabilities:
- Natural language querying of anndata objects
- Integration with select scanpy functions for running analysis and static plotting
- Interactive visualization of single-cell data (UMAP, DotMap, HeatMap, Dendrogram, etc.) with HoloViz
Installation
Install it via pip:
pip install lumen-anndata
Usage
To launch the Lumen app, run:
lumen-anndata
Development
git clone https://github.com/holoviz-topics/lumen-anndata
cd lumen-anndata
For a simple setup use uv:
uv venv
source .venv/bin/activate # on linux. Similar commands for windows and osx
uv pip install -e .[dev]
uv pip install "git+https://github.com/holoviz/lumen@main#egg=lumen[ai-llama]"
pre-commit run
pytest tests
For the full Github Actions setup use pixi:
pixi run pre-commit-install
pixi run postinstall
pixi run test
This repository is adapted from copier-template-panel-extension
To update to the latest template version run:
pixi exec --spec copier --spec ruamel.yaml -- copier update --defaults --trust
Note: copier will show Conflict for files with manual changes during an update. This is normal. As long as there are no merge conflict markers, all patches applied cleanly.
To update the embeddings to use a new version of scanpy, increment the version in scripts/embed_docs.py and run:
python scripts/embed_docs.py
Ensure you have an OpenAI API key set in your environment variables. You can set it in your terminal session with:
export OPENAI_API_KEY="sk-..."
❤️ Contributing
Contributions are welcome! Please follow these steps to contribute:
- Fork the repository.
- Create a new branch:
git checkout -b feature/YourFeature. - Make your changes and commit them:
git commit -m 'Add some feature'. - Push to the branch:
git push origin feature/YourFeature. - Open a pull request.
Please ensure your code adheres to the project's coding standards and passes all tests.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lumen_anndata-0.0.2.tar.gz.
File metadata
- Download URL: lumen_anndata-0.0.2.tar.gz
- Upload date:
- Size: 2.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d8765002752a7913c40ce0096ede6566117805d305d968306141cc198413721a
|
|
| MD5 |
1b05c3fc5df0aef5d6126505d74ed72c
|
|
| BLAKE2b-256 |
c4aafc246b8f8d0124ccff7528c102283f1768a3879620d9f9c0cbb59e32df4d
|
Provenance
The following attestation bundles were made for lumen_anndata-0.0.2.tar.gz:
Publisher:
build.yaml on holoviz-topics/lumen-anndata
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lumen_anndata-0.0.2.tar.gz -
Subject digest:
d8765002752a7913c40ce0096ede6566117805d305d968306141cc198413721a - Sigstore transparency entry: 533653018
- Sigstore integration time:
-
Permalink:
holoviz-topics/lumen-anndata@424b37ac93c792ccfa82ccb6806b1002fc6adad1 -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/holoviz-topics
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yaml@424b37ac93c792ccfa82ccb6806b1002fc6adad1 -
Trigger Event:
push
-
Statement type:
File details
Details for the file lumen_anndata-0.0.2-py3-none-any.whl.
File metadata
- Download URL: lumen_anndata-0.0.2-py3-none-any.whl
- Upload date:
- Size: 2.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea5f07c451c0061b015e6cde6827b3fa00071229bb48a0a6c8bb105fb700706d
|
|
| MD5 |
e5e934c517d0a2cfa8e960757bbb7a20
|
|
| BLAKE2b-256 |
0840934719b163012d1d782b09564c5d229e37503a029576c4073eec92fd5674
|
Provenance
The following attestation bundles were made for lumen_anndata-0.0.2-py3-none-any.whl:
Publisher:
build.yaml on holoviz-topics/lumen-anndata
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lumen_anndata-0.0.2-py3-none-any.whl -
Subject digest:
ea5f07c451c0061b015e6cde6827b3fa00071229bb48a0a6c8bb105fb700706d - Sigstore transparency entry: 533653019
- Sigstore integration time:
-
Permalink:
holoviz-topics/lumen-anndata@424b37ac93c792ccfa82ccb6806b1002fc6adad1 -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/holoviz-topics
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yaml@424b37ac93c792ccfa82ccb6806b1002fc6adad1 -
Trigger Event:
push
-
Statement type: