elynx-tree-0.5.1.1: Handle phylogenetic trees
Copyright(c) Dominik Schrempf 2021
LicenseGPL-3.0-or-later
Maintainerdominik.schrempf@gmail.com
Stabilityunstable
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

ELynx.Tree.Export.Newick

Description

Creation date: Thu Jan 17 13:51:47 2019.

Some functions are inspired by Biobase.Newick.Import.

See nomenclature in Tree.

Synopsis

Documentation

toNewick :: HasName a => Tree Phylo a -> ByteString Source #

General conversion of a tree into a Newick Bytestring. Use provided functions to extract node labels and branch lengths builder objects. See also Biobase.Newick.Export.

Functions to write key value pairs for nodes are not provided. Those can just be set as node names. For example, the posterior density and the confidence interval of a node can be encoded by setting the node name to:

"ACTUALNAME[posterior=-2839.2,age_95%_HPD={4.80804,31.6041}]"