Skip to main content

Single-cell Active Transcription Analysis

Project description

scATrans

PyPI version Python versions Documentation Status CI License

scATrans is a Python toolkit for single-cell differential analysis. It is primarily designed for datasets that contain spliced/unspliced (or mature/nascent) RNA layers. In this setting it computes a composite active transcription score that integrates differential expression with reference-based excess unspliced RNA to rank genes.

It also supports conventional differential expression workflows (no velocity data required) using scanpy, PyDESeq2 pseudobulk, linear mixed models, or optional Memento. Functional enrichment (ORA, GSEA, GO, KEGG) uses bundled gene sets with consistent universe handling, and a set of visualization functions is provided.

📚 Full documentation, tutorials, and the complete API reference are on Read the Docs: https://scatrans.readthedocs.io

Installation

pip install scatrans

# Optional extras: advanced (scVelo) mode, pseudobulk DE (PyDESeq2), Memento, GSEA
pip install "scatrans[advanced,gene_features,pseudobulk]" gseapy

See Installation for extras, source installs, and logging setup.

Quickstart

import scatrans as scat

# One-liner pipeline: score → filter → GO enrichment
result = scat.run_default_pipeline(
    adata,
    groupby="condition",
    target_group="Disease",
    reference_group="Control",
    sample_col="sample",   # optional; auto-selects pseudobulk when >=3 replicates/group
    organism="mouse",
)
print(result["candidates"].head())
print(result["enrichment"].head())

See the Quickstart for a complete end-to-end walkthrough, the Tutorials for fully worked, real-data notebooks (with and without RNA-velocity layers), and the User Guide for DE backends, enrichment, plotting, and advanced options.

Before reporting results in a paper

active_score is a composite heuristic rank, not a p-value or FDR on its own. See Statistical Guidance for what each output column means, safe vs. unsafe uses, and a reporting checklist before you cite scATrans results in a manuscript or supplement.

License

Software (Python source) is licensed under Apache License 2.0. Bundled gene-set data (GO, KEGG) carries its own licensing terms — see License before commercial use.

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

scatrans-0.9.10.dev0.tar.gz (14.5 MB view details)

Uploaded Source

Built Distribution

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

scatrans-0.9.10.dev0-py3-none-any.whl (9.0 MB view details)

Uploaded Python 3

File details

Details for the file scatrans-0.9.10.dev0.tar.gz.

File metadata

  • Download URL: scatrans-0.9.10.dev0.tar.gz
  • Upload date:
  • Size: 14.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for scatrans-0.9.10.dev0.tar.gz
Algorithm Hash digest
SHA256 8dbd8404e1ff83dea6d435b96e4627ec2ddb8bccd8932fb2f0a216ead53ac866
MD5 9d7acc16f674ba6462bfccae99291372
BLAKE2b-256 c651729719ad2a1ecde2f400883934caff0479ad40597fbb9ba3da106b0b001f

See more details on using hashes here.

Provenance

The following attestation bundles were made for scatrans-0.9.10.dev0.tar.gz:

Publisher: publish.yml on leelieber2025/scATrans

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

File details

Details for the file scatrans-0.9.10.dev0-py3-none-any.whl.

File metadata

  • Download URL: scatrans-0.9.10.dev0-py3-none-any.whl
  • Upload date:
  • Size: 9.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for scatrans-0.9.10.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 341f6f011250df90d65ca889a4fbf0701e77e0742d118ee0a829949fee797dbe
MD5 1bb3f7e1ffda51e2fc66c59c28d49a43
BLAKE2b-256 65dc558371edcd589615b2b958aeea1eb8bca895a9c627d4dae0df9ed48d8683

See more details on using hashes here.

Provenance

The following attestation bundles were made for scatrans-0.9.10.dev0-py3-none-any.whl:

Publisher: publish.yml on leelieber2025/scATrans

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