Skip to main content

Generate files for taxonium

Project description

Taxonium tools

Taxonium tools is a Python utility that allows you to generate Taxonium format files from UShER mutation-annoated trees.

Installation

pip install taxoniumtools

Usage

Basic run

First get some files:

wget https://github.com/theosanderson/taxonium/raw/master/taxoniumtools/test_data/tfci.meta.tsv.gz
wget https://raw.githubusercontent.com/theosanderson/taxonium/master/taxoniumtools/test_data/hu1.gb
wget https://github.com/theosanderson/taxonium/raw/master/taxoniumtools/test_data/tfci.pb

Then convert from UShER pb format to Taxonium jsonl format:

usher_to_taxonium --input tfci.pb --output tfci-taxonium.jsonl.gz --metadata tfci.meta.tsv.gz --genbank hu1.gb \
--columns genbank_accession,country,date,pangolin_lineage

You can then open that tfci-taxonium.jsonl.gz file at taxonium.org

Use Chronumental to infer a time tree

Taxonium tools can also use Chronumental to infer a time tree for the phylogeny.

pip install chronumental
usher_to_taxonium --input tfci.pb --output tfci-taxonium.jsonl.gz --metadata tfci.meta.tsv.gz --genbank hu1.gb \
--columns genbank_accession,country,date,pangolin_lineage --chronumental --chronumental_steps 300

For more information see the docs

Project details


Release history Release notifications | RSS feed

This version

2.1.5

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

taxoniumtools-2.1.5.tar.gz (275.3 kB view details)

Uploaded Source

Built Distribution

taxoniumtools-2.1.5-py3-none-any.whl (19.8 kB view details)

Uploaded Python 3

File details

Details for the file taxoniumtools-2.1.5.tar.gz.

File metadata

  • Download URL: taxoniumtools-2.1.5.tar.gz
  • Upload date:
  • Size: 275.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for taxoniumtools-2.1.5.tar.gz
Algorithm Hash digest
SHA256 dad3b3cb3cc5f1bfd08c8c67d1ce58345407392863a4e996b7fb76232c76b7dc
MD5 dd4cf8e04ac739596f1a2748b9467aac
BLAKE2b-256 462146b8aa0e363898f0f3007244481bc187bfea6284922e80e371f0884d6563

See more details on using hashes here.

File details

Details for the file taxoniumtools-2.1.5-py3-none-any.whl.

File metadata

  • Download URL: taxoniumtools-2.1.5-py3-none-any.whl
  • Upload date:
  • Size: 19.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for taxoniumtools-2.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 05f0d8b10082cccb74ffa7c2f0a68ac6f17fdff603f8a30ea3473a5edd115e25
MD5 8f09234f24576404a51c82454ba76f61
BLAKE2b-256 2ec22797e0b58afdf0e00ac4d08b6f6d7e89d3dc57baeb6d8d7e2f739a379efc

See more details on using hashes here.

Supported by

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