Skip to main content

Webapp to view and visualise tskit ARGs

Project description

tsbrowse

Inspect large genetic genealogies (e.g. ARGs) stored in the tskit "succinct tree sequence" format, via a genome browser style app. Tsbrowse can deal with ARGs of thousands or potentially millions of samples. It is particularly useful to help evaluate ARGs that have been inferred using tools such as tsinfer, sc2ts, Relate, KwARG, Threads, etc.

To view a tskit tree sequence or tszip file first pre-process it:

python -m tsbrowse preprocess /path/to/trees-file

This will write a .tsbrowse file

To launch the app use:

python -m tsbrowse serve /path/to/tsbrowse-file

Or to generate a PNG of a specific page use, e.g:

python -m tsbrowse screenshot /path/to/tsbrowse-file mutations

On WSL, it may be necessary to disable Numba's CUDA support:

NUMBA_DISABLE_CUDA=1 python -m tsbrowse serve /path/to/tsbrowse-file

Installation

tsbrowse is currently in development. To install the latest dev version from github, try

python -m pip install git+https://github.com/tskit-dev/tsbrowse

Development

Test are run with pytest:

python -m pytest

To run the UI tests so you can see what the browser is doing use

python -m pytest --headed --slowmo 1000 tests/test_ui.py

playwright codegen is also useful for writing UI test code.

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

tsbrowse-0.0.1.tar.gz (66.7 kB view details)

Uploaded Source

Built Distribution

tsbrowse-0.0.1-py3-none-any.whl (24.0 kB view details)

Uploaded Python 3

File details

Details for the file tsbrowse-0.0.1.tar.gz.

File metadata

  • Download URL: tsbrowse-0.0.1.tar.gz
  • Upload date:
  • Size: 66.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for tsbrowse-0.0.1.tar.gz
Algorithm Hash digest
SHA256 6c63a95a1177d57d0d806c072121d54a46c9e28eca72f4fb12cb65a348fa360a
MD5 c6ed35d421175d6944823abb648b48a7
BLAKE2b-256 d0663b177913e44c19bcaaea9f58d4d5166516f6605b5ac7698598d8c82ebde0

See more details on using hashes here.

Provenance

The following attestation bundles were made for tsbrowse-0.0.1.tar.gz:

Publisher: release.yml on tskit-dev/tsbrowse

Attestations:

File details

Details for the file tsbrowse-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: tsbrowse-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 24.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for tsbrowse-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a6a97989d34b8840802b6e22c023462747ec3d742c82b47307f3b00e348111df
MD5 6d002ab747bb9239264a616ef015c8a0
BLAKE2b-256 0e0c81829ffd309c054ac0a27e67f9de113aa2af31268cda080a3c941cc1f6c7

See more details on using hashes here.

Provenance

The following attestation bundles were made for tsbrowse-0.0.1-py3-none-any.whl:

Publisher: release.yml on tskit-dev/tsbrowse

Attestations:

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page