Skip to main content

Lumen for anndata and scanpy

Project description

✨ lumen-anndata

CI conda-forge pypi-version python-version

⚠️ Early Development Warning

This project is in pre-alpha development stage and NOT READY for use. We are actively developing core functionality and the API may change significantly with each update.

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 (Planned)

lumen-anndata aims to support 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:

  1. Fork the repository.
  2. Create a new branch: git checkout -b feature/YourFeature.
  3. Make your changes and commit them: git commit -m 'Add some feature'.
  4. Push to the branch: git push origin feature/YourFeature.
  5. Open a pull request.

Please ensure your code adheres to the project's coding standards and passes all tests.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lumen_anndata-0.0.1.tar.gz (30.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lumen_anndata-0.0.1-py3-none-any.whl (19.4 kB view details)

Uploaded Python 3

File details

Details for the file lumen_anndata-0.0.1.tar.gz.

File metadata

  • Download URL: lumen_anndata-0.0.1.tar.gz
  • Upload date:
  • Size: 30.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for lumen_anndata-0.0.1.tar.gz
Algorithm Hash digest
SHA256 ae419966a21373d588f72a77b5cec23a00c5fd94f6207ba11474edb9812cef0c
MD5 cfa175adbbe268c4108566b6ed0ee1d4
BLAKE2b-256 3e68c56d997eb997f956c817e926b6474c9a40d9a16f0c75df60d8ff99695353

See more details on using hashes here.

Provenance

The following attestation bundles were made for lumen_anndata-0.0.1.tar.gz:

Publisher: build.yaml on holoviz-topics/lumen-anndata

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lumen_anndata-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: lumen_anndata-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 19.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for lumen_anndata-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2ab8a747696c27b1f13819e077cd900979f00f63437ac90e19901a26bb7ace6f
MD5 9e2a35aa7fdfb764212b0e0987fcd415
BLAKE2b-256 3bd8c077cd56ef07449e6baf03d6fd18df3acf27f1fb71ff827757d8ceadb878

See more details on using hashes here.

Provenance

The following attestation bundles were made for lumen_anndata-0.0.1-py3-none-any.whl:

Publisher: build.yaml on holoviz-topics/lumen-anndata

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page