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
Project details
Release history Release notifications | RSS feed
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.0.83.tar.gz
(274.3 kB
view hashes)
Built Distribution
Close
Hashes for taxoniumtools-2.0.83-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ca8dc2c5bbe4502c507a549c5d23c16cbe1a1df4e27dfa8d4e18f52be2a9e33 |
|
MD5 | cac9991cfac104713914e6f1ccb5f15b |
|
BLAKE2b-256 | 4fb02e5886edb7d45ed4ba057651bdf91ebc91797e2dd6fce5990fd710334c78 |