Logo
  • Installation and first analysis
  • Command reference
    • Choose by task
    • All commands
      • Alignment & dataset utilities
      • Alignment quality & statistics
      • Evolutionary rate analysis
      • Homology assessment
      • Introgression & gene flow
      • Other utilities
      • Phylogenetic comparative methods
      • Phylogenetic signal
      • Saturation & model adequacy
      • Trait evolution
      • Tree comparison & consensus
      • Tree manipulation & utilities
        • Branch length multiplier
        • Chronogram
        • Collapse bipartitions
        • Internode labeler
        • Last common ancestor subtree
        • Monophyly check
        • Nearest neighbor interchange
        • Print tree
        • Prune tree
        • Rename tree tips
        • Root tree
        • Subtree pruning and regrafting
        • Tip labels
        • Transfer annotations
      • Tree summary statistics
  • Tutorials
  • Input formats and shared conventions
  • Glossary
  • Troubleshooting
  • Frequently asked questions
  • Usage
  • About
  • Change log
  • Other software
phykit
  • Command reference
  • Tree manipulation & utilities
  • Print tree

Print tree

Print ASCII representation of a tree

Command identity

Canonical command:

print_tree

Handler:

print_tree

Aliases:

print, pt

Standalone executables:

pk_print_tree, pk_print, pk_pt

Categories:

Tree manipulation & utilities

Runtime interface

Synopsis

phykit print_tree <tree> [--remove] [--json]

Arguments

This table is generated from the live command parser. It is the authoritative source for accepted spellings, required arguments, types, defaults, and choices.

Argument

Required

Type

Default

Choices

tree

true

str

required

any

-r, --remove

false

boolean

false

any

--json

false

boolean

false

any

Output and errors

--json provides the command's structured JSON representation. Unless the guidance below states otherwise, results are emitted as command output. Invalid command syntax exits with status 2. Input validation and scientific limitations are described in the guidance below.

Guidance, interpretation, and examples

Print ascii tree of input phylogeny.

Phylogeny can be printed with or without branch lengths. By default, the phylogeny will be printed with branch lengths but branch lengths can be removed using the -r/--remove argument.

phykit print_tree <tree> [-r/--remove] [--json]

Options:
<tree>: first argument after function name should be a tree file
-r/--remove: optional argument to print the phylogeny without branch lengths
--json: optional argument to print results as JSON

Previous Next

© Copyright 2020-2026 Jacob L. Steenwyk.

Built with Sphinx using a theme provided by Read the Docs.