Skip to main content

Python port of the R tradeSeq package (tracks statOmics/tradeSeq 1.13.12 @ 02a9050) — trajectory-based differential expression analysis (NB-GAM)

Project description

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

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

tradeseq_python-1.13.12.tar.gz (1.6 MB view details)

Uploaded Source

Built Distribution

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

tradeseq_python-1.13.12-py3-none-any.whl (1.7 MB view details)

Uploaded Python 3

File details

Details for the file tradeseq_python-1.13.12.tar.gz.

File metadata

  • Download URL: tradeseq_python-1.13.12.tar.gz
  • Upload date:
  • Size: 1.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for tradeseq_python-1.13.12.tar.gz
Algorithm Hash digest
SHA256 6c84e4d6192d68a105176285a18af2ba44adce0e76ec13c8a48730720d94be85
MD5 adef3c1a6762a5259694e48fac7b8a29
BLAKE2b-256 8b652aca28138af608074e6349260cffc12d7eec6889e5b7349825ea4df6c521

See more details on using hashes here.

File details

Details for the file tradeseq_python-1.13.12-py3-none-any.whl.

File metadata

File hashes

Hashes for tradeseq_python-1.13.12-py3-none-any.whl
Algorithm Hash digest
SHA256 1aa8c11aea9b8bb8061939fc9826b41b93e4d91401d48b34435b782ffc7b314d
MD5 0b7ab9ab95e1c772714a86c32d871438
BLAKE2b-256 49125b5593d0e525b42b3f9d51ffa95d214addb846d41af688721555150d5eec

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