Skip to main content

itolparser

Small script to produce iTOL colorstrip metadata files from a table

Background

iTOL is a web interface to display and manipulate phylogenetic trees, together with metadata. Producing these metadata files can be cumbersome, which is why this script might come in handy.

Method

itolparser takes a table as input file, and loops through each column. By default, all columns are parsed as categorical. Specific columns can be parsed as continuous by providing a comma-separated list of column names with --continuous or ignore columns with --ignore.

For categorical columns, colours are selected based on the number of categories in the column. If there are more than 18 values, random colours are generated. Additionally, an annotation file will be created (labeled with _filtered) where a maximum number of colours is used, sorted on occurrence (controlled by --maxcategories) and uses grey color for other categories. This is e.g. useful for ST typing, which is categorical data often with a lot of different values.

Output files are written to a directory. Parameters such as margin and colorstrip width can be controlled with --margin and --stripwidth respectively (these can also be changed online in iTOL itself).

Bugs and suggestions

Create an issue or shoot me an email at boas [dot] vanderputten [at] amsterdamumc [dot] nl

Metadata

Release files for itolparser 0.2.1

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

Source distribution (sdist)

Source distribution for itolparser 0.2.1
File Size Uploaded
itolparser-0.2.1.tar.gz 7.0 kB Details

Release files / itolparser-0.2.1.tar.gz

Download URL itolparser-0.2.1.tar.gz
Size 7.0 kB
Tags Source
SHA-256 checksum
How to use checksums
8699adea2caf5ea1c645c5bc1abf4be8aa232a7c6c51f8a1f229c465408b6570
BLAKE2b-256 checksum
How to use checksums
6b4ce14fea5f89b7ab153dce3370510fd33be42990acea085e3fac0a945499e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Release history Release notifications | RSS feed

This release

0.2.1 This release

1 release file

0.1.6

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1

1 release file

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