Skip to main content

sclab

Project description

SCLab

SCLab is an interactive single-cell analysis toolkit that provides a seamless interface for analyzing and visualizing single-cell RNA sequencing data. Built on top of popular tools like scanpy and AnnData, SCLab offers an event-driven architecture for real-time updates and interactive visualizations.

Features

  • Interactive Data Analysis: Built-in dashboard with real-time updates
  • Quality Control: Comprehensive QC metrics and filtering capabilities
  • Preprocessing: Normalization, log transformation, and scaling with progress tracking
  • Dimensionality Reduction: PCA with batch effect correction support
  • Visualization: Interactive plots and tables using plotly and itables
  • Event System: Robust event-driven architecture for real-time updates

Installation

pip install sclab

Quick Start

Open a Jupyter Notebook and run the following:

from IPython.display import display
from sclab import SCLabDashboard
import scanpy as sc

# Load your data
adata = sc.read_10x_h5("your_data.h5")

# Create dashboard
dashboard = SCLabDashboard(adata, name="My Analysis")

# Display dashboard
display(dashboard)

# The dashboard provides easy access to components:
# dashboard.ds  # Dataset (wrapper for AnnData)
# dashboard.pl  # Plotter
# dashboard.pr  # Processor

# the active AnnData object is found within the dataset object:
# dashboard.ds.adata

# by default, the dashboard will update the loaded AnnData object in-place

Components

SCLabDashboard

The main interface that integrates all components with a tabbed layout:

  • Main graph for visualizations
  • Results panel
  • Observations table
  • Genes table
  • Event logs

Dataset

Handles data management with:

  • AnnData integration
  • Interactive tables
  • Row selection and filtering
  • Metadata handling

Processor

Handles data processing steps. It is configurable with custom steps implementing the ProcessorStepBase interface. This package provides multiple examples of steps:

  • QC
  • Preprocessing
  • PCA
  • Nearest Neighbors
  • UMAP
  • Clustering

Plotter

Provides interactive visualizations with:

  • Real-time updates
  • Customizable plots
  • Batch effect visualization
  • Export capabilities

Requirements

  • Python ≥ 3.12
  • anndata ≥ 0.11.3
  • scanpy ≥ 1.10.4
  • Other dependencies listed in pyproject.toml

Contributing

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

License

This project is licensed under the BSD 3-Clause License - see the LICENSE file for details.

Citation

If you use SCLab in your research, please cite:

@software{sclab2025,
  author = {Arriojas, Argenis},
  title = {SCLab: Interactive Single-Cell Analysis Toolkit},
  year = {2025},
  publisher = {GitHub},
  url = {https://github.com/umbibio/sclab}
}

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

sclab-0.3.4.tar.gz (112.8 kB view details)

Uploaded Source

Built Distribution

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

sclab-0.3.4-py3-none-any.whl (146.3 kB view details)

Uploaded Python 3

File details

Details for the file sclab-0.3.4.tar.gz.

File metadata

  • Download URL: sclab-0.3.4.tar.gz
  • Upload date:
  • Size: 112.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sclab-0.3.4.tar.gz
Algorithm Hash digest
SHA256 f1d55b7cbfa3d782e36d9f04f93a4d0cfc8b6b45f7ddd8aa3234a0d68339a499
MD5 0c77d36b3039e6baabc9d7cb7e28d23a
BLAKE2b-256 aa49dfe28b84b6675a4510be780d1e418c2bdbb84236a5b9c0a7210a6aea36d3

See more details on using hashes here.

Provenance

The following attestation bundles were made for sclab-0.3.4.tar.gz:

Publisher: publish.yml on umbibio/sclab

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sclab-0.3.4-py3-none-any.whl.

File metadata

  • Download URL: sclab-0.3.4-py3-none-any.whl
  • Upload date:
  • Size: 146.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sclab-0.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 684205db0231d8241e556e592f950e44060ec25e97fc5796c7b3453bb4b09a6d
MD5 75c0666e5942540ce152e226f032b2fd
BLAKE2b-256 f605ece9badfdf1c422966f0a649c477662256e50899b138da1e2e10a3ef019b

See more details on using hashes here.

Provenance

The following attestation bundles were made for sclab-0.3.4-py3-none-any.whl:

Publisher: publish.yml on umbibio/sclab

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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