Skip to main content

Generate a standalone HTML file with an interactive phylogenetic tree using PhyloCanvas

Project description

Standalone HTML Interactive Phylogenetic Tree Viz

https://img.shields.io/pypi/v/shiptv.svg https://img.shields.io/travis/peterk87/shiptv.svg Documentation Status

Generate a standalone HTML file with an interactive phylogenetic tree using PhyloCanvas

Features

  • TODO

Usage

Show help

shiptv --help

Help output

Usage: shiptv [OPTIONS]

  Create HTML tree visualization with metadata.

  The metadata for reference genomes is extracted from the specified Genbank
  file.

  Any leaf names that are present in the tree but not present in the Genbank
  file are assumed to be user samples and are flagged as such in the
  metadata table as "user_sample"="Yes".

Options:
  -r, --ref-genomes-genbank TEXT  Reference genome sequences Genbank file
                                  [required]
  -n, --newick TEXT               Phylogenetic tree Newick file  [required]
  -o, --output-html TEXT          Output HTML tree path  [required]
  -m, --output-metadata-table TEXT
                                  Output metadata table path  [required]
  --leaflist TEXT                 Optional leaf names to select from
                                  phylogenetic tree for pruned tree
                                  visualization. One leaf name per line.
  --genbank-metadata-fields TEXT  Optional fields to extract from Genbank
                                  source metadata. One field per line.
  --user-sample-metadata TEXT     Optional tab-delimited metadata for user
                                  samples to join with metadata derived from
                                  reference genome sequences Genbank file.
                                  Sample IDs must be in the first column.
  --metadata-fields-in-order TEXT
                                  Optional list of fields in order to output
                                  in metadata table and HTML tree
                                  visualization. One field per line.
  --dont-fix-metadata             Do not automatically fix metadata
  --help                          Show this message and exit.

With a reference sequence Genbank file ref.gb, a Newick format phylogenetic tree tree.nwk, output a tree.html standalone HTML interactive phylogenetic tree visualization and a metadata-table.tsv tab-delimited table of metadata from ref.gb.

shiptv -r ref.gb -n tree.nwk -o tree.html -m metadata-table.tsv

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.1.0 (2019-05-10)

  • First release on PyPI.

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

shiptv-0.1.0.tar.gz (55.9 kB view hashes)

Uploaded Source

Built Distribution

shiptv-0.1.0-py2.py3-none-any.whl (27.3 kB view hashes)

Uploaded Python 2 Python 3

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