Copyright | (c) Dominik Schrempf 2020 |
---|---|
License | GPL-3.0-or-later |
Maintainer | dominik.schrempf@gmail.com |
Stability | unstable |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Creation date: Thu Jan 17 13:51:47 2019.
Some functions are inspired by Biobase.Newick.Import.
See nomenclature in Tree
.
Synopsis
- toNewick :: HasName a => Tree Phylo a -> ByteString
- toNewickBuilder :: HasName a => Tree Phylo a -> Builder
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}]"