elynx-tree-0.6.0.0: 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 :: (HasMaybeLength e, HasMaybeSupport e, HasName a) => Tree e a -> ByteString Source #

General conversion of a tree into a Newick ByteString.

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

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

Orphan instances