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