Skip to main content

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


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)

Uploaded Source

Built Distribution

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

plotly_for_scanpy-0.1.0-py3-none-any.whl (18.5 kB view details)

Uploaded Python 3

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

Hashes for plotly_for_scanpy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 df54ccee5a49cde46137f531842f841238bc5aa1d9c853a63340812bde7da5bb
MD5 f1f748283d6404dc7862db76938f9112
BLAKE2b-256 465a986dc9862c438b24393afae530b6cbeadb12e693a087617fe69ae88550c8

See more details on using hashes here.

File details

Details for the file plotly_for_scanpy-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for plotly_for_scanpy-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eac72b39ee23704883133225c8ead3da1f0d17c6d827759860f55776891203b3
MD5 b4e31fb56da5f78c39a2349dfa89b71b
BLAKE2b-256 d0ec1c0ccd0f6e79cde6dbc6b84c714666ccacc963fe0886b6dadc2cc1ff10ac

See more details on using hashes here.

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