Skip to main content

Signaling Single Cell - Visualizations for single-cell RNA sequencing data

Project description

ssc: Signaling Single Cell - Visualizations

A Python package for creating publication-ready visualizations of single-cell RNA sequencing data.

Installation

Development Installation (Recommended during active development)

# Clone the repository
git clone https://github.com/yourusername/ssc.git
cd ssc

# Install in development mode
pip install -e .

PyPI Installation (Coming soon)

pip install ssc

Quick Start

import ssc
import scanpy as sc

# Load your AnnData object
adata = sc.read_h5ad('your_data.h5ad')

# Basic violin plot
fig = ssc.vlnplot(adata, 'GNLY', 'cell_type')

# Split violin with custom colors
fig = ssc.vlnplot(adata, 'GNLY', 'condition', 
                  split_by='treatment',
                  split_colors={'pre': 'lightblue', 'dupi': 'darkblue'})

# Faceted plot with custom ordering
fig = ssc.vlnplot(adata, 'GNLY', 'condition', 
                  facet_by='subject', facet_col='cell_type',
                  group_order=['Nonlesional', 'SADBE', 'Metal'])

Features

  • Publication-ready plots: High-quality violin plots with comprehensive customization
  • Split violin plots: Compare conditions within each group
  • Faceted plots: Create subplot grids by multiple variables
  • Custom colors: Dictionary-based color mapping for groups and splits
  • R-style scaling: Dual y-axis with proper mean expression scaling
  • Custom ordering: Control category order for all grouping variables
  • Rich statistics: Cell counts, fraction expressing, and mean expression
  • Layer support: Plot from any AnnData layer or raw counts

Dependencies

  • pandas >= 1.3.0
  • numpy >= 1.20.0
  • matplotlib >= 3.5.0
  • seaborn >= 0.11.0
  • scanpy >= 1.8.0

Contributing

Contributions welcome! Please feel free to submit a Pull Request.

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

ssc_python-0.1.0.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

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

ssc_python-0.1.0-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

Details for the file ssc_python-0.1.0.tar.gz.

File metadata

  • Download URL: ssc_python-0.1.0.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.18

File hashes

Hashes for ssc_python-0.1.0.tar.gz
Algorithm Hash digest
SHA256 26fe63f0a4e45b835db9932229c1d5fe2f4363601bffdadaf178da3e1bf62e7f
MD5 fa76db4b1582745e279c9201f9b6ccf8
BLAKE2b-256 f76e9a14a8416baa8b877d10625f77f19f6b3a87cd0e465288c5a6bf89bec814

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ssc_python-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.18

File hashes

Hashes for ssc_python-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 950f28e8ae974304238fbbd560b1f10f4610198d1416f1d66235446412be4cf9
MD5 98cf4e8504c3dbd9c905ba77b2f1b301
BLAKE2b-256 8f56bea1493e973a2680c9d627f086e262f5066546b87cc6d161ec4b2a72276d

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