Plotly-based visualization tools for Scanpy data
Project description
plotly_for_scanpy
Interactive Plotly-based visualization tools for Scanpy single-cell data analysis, providing drop-in alternatives to scanpy.pl functions with enhanced interactivity.
Installation
pip install plotly_for_scanpy
Features
- Dynamic Downsampling: Efficiently visualize large datasets with intelligent point reduction
- Interactive Plots: All visualizations are fully interactive with zoom, pan, and hover functionality
- Scanpy Integration: Works seamlessly with AnnData objects
- Publication Quality: Easily export to HTML or static formats
Example Usage
import scanpy as sc
import plotly_for_scanpy as psc
# Load data
adata = sc.datasets.pbmc3k()
sc.pp.normalize_total(adata)
sc.pp.log1p(adata)
sc.pp.highly_variable_genes(adata)
sc.pp.pca(adata)
sc.pp.neighbors(adata)
sc.tl.umap(adata)
sc.tl.leiden(adata)
# Use interactive UMAP visualization
psc.umap(adata, color=['leiden'])
# Visualize with dynamic downsampling for large datasets
fig = psc.umap(adata, color='leiden', return_fig=True)
dynamic_fig = psc.dd(fig, resolution=10000)
dynamic_fig.show()
Documentation
Full examples and tutorials:
License
MIT License
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
plotly_for_scanpy-0.1.0.tar.gz
(18.6 kB
view details)
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 plotly_for_scanpy-0.1.0.tar.gz.
File metadata
- Download URL: plotly_for_scanpy-0.1.0.tar.gz
- Upload date:
- Size: 18.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df54ccee5a49cde46137f531842f841238bc5aa1d9c853a63340812bde7da5bb
|
|
| MD5 |
f1f748283d6404dc7862db76938f9112
|
|
| BLAKE2b-256 |
465a986dc9862c438b24393afae530b6cbeadb12e693a087617fe69ae88550c8
|
File details
Details for the file plotly_for_scanpy-0.1.0-py3-none-any.whl.
File metadata
- Download URL: plotly_for_scanpy-0.1.0-py3-none-any.whl
- Upload date:
- Size: 18.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eac72b39ee23704883133225c8ead3da1f0d17c6d827759860f55776891203b3
|
|
| MD5 |
b4e31fb56da5f78c39a2349dfa89b71b
|
|
| BLAKE2b-256 |
d0ec1c0ccd0f6e79cde6dbc6b84c714666ccacc963fe0886b6dadc2cc1ff10ac
|