This is an archived static version of the original discussion site.

p4 Python phylogenetics toolkit


News to me: p4 phylogenetics toolkit, which does inference and manipulation.

P4 is a Python package for maximum likelihood and Bayesian analysis of molecular sequences. Its specialty is that it can use heterogeneous models, where the characteristics of the model can differ over the data or over the tree.

  • P4 can be used as a phylogenetic toolkit, the elements of which you can string together in different ways depending on the job at hand. It is useful for programmatic manipulation of phylogenetic data and trees. If you want to do something interesting with your trees or data, p4 might have at least some of what you want to do already in place.
  • P4 will read data in a few of the common phylogenetic formats (eg Nexus, Phylip, clustalw, fasta, pir/nbrf), but does not read other formats in bioinformatics (eg EMBL, genbank). P4 will read in trees in Nexus or Phylip format.
  • P4 will do some elementary data manipulation, eg extracting a Nexus-defined charset from an alignment, or converting data from one format to another. P4 will also do tree manipulation, and tree drawing. It has a big tree viewer, to be able to view big trees (eg up to 5000 taxa) on the screen.
  • P4 is meant to be easily extensible, so if you want to do something that it cannot do, it is often easy to add that functionality.

As far as I can tell, there isn’t an overlap with @jeetsukumaran’s DendroPy or Paul Lewis’ Phycas.