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
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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f1d55b7cbfa3d782e36d9f04f93a4d0cfc8b6b45f7ddd8aa3234a0d68339a499
|
|
| MD5 |
0c77d36b3039e6baabc9d7cb7e28d23a
|
|
| BLAKE2b-256 |
aa49dfe28b84b6675a4510be780d1e418c2bdbb84236a5b9c0a7210a6aea36d3
|
Provenance
The following attestation bundles were made for sclab-0.3.4.tar.gz:
Publisher:
publish.yml on umbibio/sclab
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sclab-0.3.4.tar.gz -
Subject digest:
f1d55b7cbfa3d782e36d9f04f93a4d0cfc8b6b45f7ddd8aa3234a0d68339a499 - Sigstore transparency entry: 689309330
- Sigstore integration time:
-
Permalink:
umbibio/sclab@d2a3d798d961b48df0e32189e2104f772c1964f0 -
Branch / Tag:
refs/tags/v0.3.4 - Owner: https://github.com/umbibio
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@d2a3d798d961b48df0e32189e2104f772c1964f0 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
684205db0231d8241e556e592f950e44060ec25e97fc5796c7b3453bb4b09a6d
|
|
| MD5 |
75c0666e5942540ce152e226f032b2fd
|
|
| BLAKE2b-256 |
f605ece9badfdf1c422966f0a649c477662256e50899b138da1e2e10a3ef019b
|
Provenance
The following attestation bundles were made for sclab-0.3.4-py3-none-any.whl:
Publisher:
publish.yml on umbibio/sclab
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sclab-0.3.4-py3-none-any.whl -
Subject digest:
684205db0231d8241e556e592f950e44060ec25e97fc5796c7b3453bb4b09a6d - Sigstore transparency entry: 689309342
- Sigstore integration time:
-
Permalink:
umbibio/sclab@d2a3d798d961b48df0e32189e2104f772c1964f0 -
Branch / Tag:
refs/tags/v0.3.4 - Owner: https://github.com/umbibio
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@d2a3d798d961b48df0e32189e2104f772c1964f0 -
Trigger Event:
push
-
Statement type: