Skip to content

kfuku52/nwkit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

NWKIT (/njuːkit/) is a toolkit for manipulating phylogenetic trees in the Newick format.

Installation

# Installation with pip
pip install git+https://github.com/kfuku52/nwkit

# This should show complete options
nwkit -h 

Subcommands

See Wiki for usage.

  • constrain: Generating a species-tree-like Newick file for topological constraint
  • dist: Calculating topological distance between two trees
  • drop: Removing node and branch information
  • info: Printing tree information
  • intersection: Dropping non-overlapping leaves/sequences between two trees or between a tree and an alignment
  • label: Adding unique node labels
  • mark: Adding texts to node labels by identifying the targets with a leaf name regex
  • mcmctree: Introducing divergence time constraints for PAML's mcmctree
  • nhx2nwk: Generating Newick from NHX
  • printlabel: Searching and printing node labels
  • prune: Pruning leaves
  • rescale: Rescale branch length with a given factor
  • root: Placing or transferring the tree root
  • sanitize: Eliminating non-standard Newick flavors
  • shuffle: Shuffling branches and/or labels
  • subtree: Generating a subtree Newick file
  • transfer: Transferring information between trees

Citation

There is no published paper on NWKIT itself, but we used and cited NWKIT in several papers including Fukushima & Pollock (2023, Nat Ecol Evol 7: 155-170).

Licensing

This program is BSD-licensed (3 clause). See LICENSE for details.

About

Newick tree processing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published