valency-anndata
Experimental tooling to support notebook analysis of polislike data.
✨ Inspired by scanpy and the scverse ecosystem! ❤️
Installation
pip install valency-anndata
Usage
Loading Polis Data
import valency_anndata as val
adata = val.datasets.polis.load("https://pol.is/report/r29kkytnipymd3exbynkd")
val.viz.schematic_diagram(adata, diff_from=None)
Running Polis Pipelines
with val.viz.schematic_diagram(diff_from=adata):
val.tools.recipe_polis(adata, key_added_pca="X_pca_polis")
val.viz.embedding(adata, basis="pca_polis", color="kmeans_polis")
Exploring Polis Pipelines
val.viz.schematic_diagram(diff_from=adata):
val.preprocessing.calculate_qc_metrics(pacmap_adata, inplace=True)
val.viz.embedding(adata, basis="pca_polis",
color=["kmeans_polis", "pct_seen", "pct_agree", "pct_pass"],
)
Running & Exploring Alternative Pipelines
from valency_anndata.tools._polis import _zero_mask, _cluster_mask
with val.viz.schematic_diagram(diff_from=adata):
_zero_mask(adata)
val.preprocessing.impute(
adata,
strategy="mean",
source_layer="X_masked",
target_layer="X_masked_imputed_mean",
)
val.tools.pacmap(
adata,
key_added="X_pacmap",
layer="X_masked_imputed_mean",
)
_cluster_mask(adata)
val.tools.kmeans(
adata,
k_bounds=(2, 9),
use_rep="X_pacmap",
mask_obs="cluster_mask",
key_added="kmeans_pacmap",
)
val.viz.embedding(adata, basis="pacmap",
color=["kmeans_pacmap", "pct_seen", "pct_agree", "pct_pass"],
)
For full examples and planned features, see: kitchen-sink.ipynb
AI-Assisted Exploration (Claude Code Skill)
This repo includes a Claude Code skill that guides you through loading and exploring Polis conversations interactively. It will prompt you for which projections and annotations to visualize, then run the full pipeline for you.
Contributing
We are maintaining a custom CONTRIBUTING.md with specific links and a compiled list of entry tasks!
Metadata
Release files for valency-anndata 0.5.0
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 |
|---|---|---|---|---|
| valency_anndata-0.5.0.tar.gz | 13.6 MB | Without provenance | Details for valency_anndata-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| valency_anndata-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for valency_anndata-0.5.0-py3-none-any.whl |
Total release size: 13.7 MB
Release files / valency_anndata-0.5.0.tar.gz
| Download URL | valency_anndata-0.5.0.tar.gz |
|---|---|
| Size | 13.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c28abe737c6f6df9440890676f86a090da04b2c5ca57e7bc63ce9090a2986958
|
|
BLAKE2b-256 checksum How to use checksums |
c905742c9b0f132e3cc913b41bc2338581865982a139bb065f3985c22a62f8f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.2
|
Release files / valency_anndata-0.5.0-py3-none-any.whl
| Download URL | valency_anndata-0.5.0-py3-none-any.whl |
|---|---|
| Size | 105.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9558aa861814556018f760be7005a6c835ad3e8e713b77b957a64290769de931
|
|
BLAKE2b-256 checksum How to use checksums |
803d5b51e7248e1710909fe04b31b0aa6538b02b60263fb382b24a7a25e4442d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.2
|
Security for valency-anndata 0.5.0
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.