Cell Search
A Python package for finding similar cells in embedding space and launching an interactive Dash interface for exploration.
Installation
From PyPI
pip install cell_search
From Source (development)
This repository uses uv for dependency management and poe for tasks.
uv sync
Deployment
This package can run as a standalone local app, in Docker, or embedded in a Flask host application.
Execution Modes
This package supports three execution modes via the app factory in src/cell_search/app.py:
- Standalone (local):
create_dash_app(data_path=None)launched byscripts/Cell_Search_App.py. - Docker deployment:
create_dash_app(data_path=None)launched in a containerized environment. - Embedded in dash_on_flask:
create_app(name, config=None, server=None, ...)integrates as a registered Dash app within a multi-app Flask host.
Standalone (Local)
# Optional: set custom parquet path
export CELL_SEARCH_DATA_PATH=/absolute/path/to/microns_SomaData_AllCells_v661.parquet
# Optional: set CAVE token for CAVE/Neuroglancer operations
export CAVE_TOKEN=<your-token>
# Run standalone app
uv run python scripts/Cell_Search_App.py
Default URL: http://localhost:8050
Docker Deployment
export CAVE_TOKEN=<your-token>
docker compose up --build
Default URL: http://localhost:8050
If your data file is not in the repository default location, set:
export CELL_SEARCH_DATA_PATH=/absolute/path/to/microns_SomaData_AllCells_v661.parquet
before launching Docker.
Embedded in dash_on_flask (Local POC)
Use this mode when validating integration with a multi-app Flask host.
- In dash_on_flask, add
cell_search.create_appintoDASH_DATASTACK_SUPPORTfor the target datastack. - Install this package into the dash_on_flask environment from PyPI:
pip install cell_search
- Provide runtime environment in dash_on_flask:
export CELL_SEARCH_DATA_PATH=/data/microns_SomaData_AllCells_v661.parquet
export CAVE_TOKEN=<your-token>
- Launch dash_on_flask and visit:
/dash/datastack/<datastack>/apps/cell_search/
For local proof-of-concept environments using middle_auth_client, AUTH_DISABLED=true is often used.
Development
Setup
uv sync
Jupyter
poe lab
Running Tests
poe test
Building Documentation
poe doc-preview
Versioning
# Dry run to see what will change
poe drybump patch
# Actually bump the version
poe bump patch # or minor, or major
Profiling
# Profile with scalene (CPU + memory)
poe profile-all <your script>
# Profile with pyinstrument (CPU only, nicer output)
poe profile <your script>
License
MIT License - see LICENSE file for details.
Metadata
Release files for cell-search 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cell_search-0.0.1.tar.gz | 13.4 kB | Without provenance | Details for cell_search-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cell_search-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for cell_search-0.0.1-py3-none-any.whl |
Total release size: 31.9 kB
Release files / cell_search-0.0.1.tar.gz
| Download URL | cell_search-0.0.1.tar.gz |
|---|---|
| Size | 13.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
edb3d100d1913165455a4810965260f14f94ff0c5df5246e1eefa577d341b638
|
|
BLAKE2b-256 checksum How to use checksums |
768626cfccc72a2d0133cf970ee6c47dd143cc241d39f8f43c50eb9a15ea1c60
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / cell_search-0.0.1-py3-none-any.whl
| Download URL | cell_search-0.0.1-py3-none-any.whl |
|---|---|
| Size | 18.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f18edaf3e328463cce071e08882a617e3124988c5de5aaaeedbae58d98637e80
|
|
BLAKE2b-256 checksum How to use checksums |
5d8dcc482786667329979c0fb7f4e8b9e5eda36bd2dc3430d9bb2eeb7eb1e972
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Security for cell-search 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.