package phylogenetics

  1. Overview
  2. Docs
Algorithms and datastructures for phylogenetics

Install

Dune Dependency

Authors

Maintainers

Sources

phylogenetics-0.3.0.tbz
sha256=de867d7cc017a8e434dab43ef16f0f6495973892cd7b6a8446b18e79393704a8
sha512=0209538caf94be47eabcaa25399c54849bd4fa0fc79e0579acee27f46ef3b72aa50e17bdb48fed8e86674d4caee6c1c4c423833a2757db12e2a6cc28234510de

doc/index.html

Phylogenetics

This library provides data structures and algorithms to parse, transform and draw phylogenies, perform simulations or statistical inference on evolutionary models.

The full API is available here.

Quickstart

Let's start using phylogenetics in the ocaml interpreter, by calling `utop` or `ocaml` (with `down` installed for instance):

# #require "phylogenetics";;
[...]

Loading a newick tree

Several functions are available in the Phylogenetics.Newick module to parse from a file or a string:

# let t = Phylogenetics.Newick.from_string_exn "((B:0.2,(C:0.3,D:0.4)E:0.5)F:0.1)A;";;
val t : Phylogenetics.Newick.t =
  {Phylogenetics.Newick.name = Some "A"; tags = []; parent_branch = None;
   children =
    [{Phylogenetics.Newick.name = Some "F"; tags = [];
      parent_branch = Some 0.1;
      children =
[...]
OCaml

Innovation. Community. Security.