Skip to main content

tradeSeq-python

PyPI

Python tradeSeq package — trajectory-based differential expression analysis with negative-binomial generalized additive models (NB-GAM).

Installation

pip install tradeSeq-python                # from PyPI

Quickstart

import tradeseq as ts

adata = ts.load_paul15()                              # AnnData (2660 × 240)

ts.fit_gam(adata, n_knots=6)                          # NB-GAM per gene

assoc = ts.association_test(adata)                    # expression vs pseudotime
start = ts.start_vs_end_test(adata)                   # progenitor markers
diff  = ts.diff_end_test(adata)                       # between-lineage endpoints
patt  = ts.pattern_test(adata)                        # between-lineage patterns
early = ts.early_de_test(adata, knots=(1, 2))         # early drivers

ts.plot_smoothers(adata, gene=start['waldStat'].idxmax())
ts.plot_gene_count(adata, gene=start['waldStat'].idxmax())

Choose the number of knots with evaluate_k / evaluate_k2 and plot_evaluatek_results. evaluate_k2 is a speed-up version of the original evaluate_k.

Tutorials

Runnable notebooks that reproduce the R tradeSeq vignettes live under tutorials/:

Notebook Coverage
tradeSeq.ipynb Full Wald battery on the Paul-2015 myeloid trajectory — mirrors vignettes/tradeSeq.Rmd
fitGAM.ipynb Model-fitting options — covariates, parallelism, list-mode output, convergence diagnostics

Release files for tradeSeq-python 1.13.12

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tradeSeq-python 1.13.12
File Size Uploaded
tradeseq_python-1.13.12.tar.gz 1.6 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for tradeSeq-python 1.13.12
File Interpreter ABI Platform
tradeseq_python-1.13.12-py3-none-any.whl Python 3 none any Details

Total release size: 3.3 MB

Release files / tradeseq_python-1.13.12.tar.gz

Download URL tradeseq_python-1.13.12.tar.gz
Size 1.6 MB
Tags Source
SHA-256 checksum
How to use checksums
6c84e4d6192d68a105176285a18af2ba44adce0e76ec13c8a48730720d94be85
BLAKE2b-256 checksum
How to use checksums
8b652aca28138af608074e6349260cffc12d7eec6889e5b7349825ea4df6c521
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release files / tradeseq_python-1.13.12-py3-none-any.whl

Download URL tradeseq_python-1.13.12-py3-none-any.whl
Size 1.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
1aa8c11aea9b8bb8061939fc9826b41b93e4d91401d48b34435b782ffc7b314d
BLAKE2b-256 checksum
How to use checksums
49125b5593d0e525b42b3f9d51ffa95d214addb846d41af688721555150d5eec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release history Release notifications | RSS feed

This release

1.13.12 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page