Copyright | (c) Dominik Schrempf 2019 |
---|---|
License | GPL-3 |
Maintainer | dominik.schrempf@gmail.com |
Stability | unstable |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Creation date: Thu Jan 17 16:08:54 2019.
Phylogenetic nodes have a branch length and a label.
The easiest label type is Int
: PhyloIntLabel
.
Also, the ByteString
label is needed often: PhyloByteStringLabel
.
XXX: This is all too complicated. Maybe I should just define a standard tree object like > data PhyloTree a = Tree (PhyloLabel a) and that's it. Forget about type classes like Measurable, Named and so on.
Synopsis
- data PhyloLabel a = PhyloLabel {}
- type PhyloIntLabel = PhyloLabel Int
- type PhyloByteStringLabel = PhyloLabel ByteString
- removeBrLen :: Tree (PhyloLabel a) -> Tree a
Documentation
data PhyloLabel a Source #
A primitive label type for phylogenetic trees with a name, possibly a
branch support value, and a Double
branch length.
Instances
type PhyloIntLabel = PhyloLabel Int Source #
Tree node with Int
label.
type PhyloByteStringLabel = PhyloLabel ByteString Source #
Tree node with ByteString
label. Important for parsing
Newick
files.
removeBrLen :: Tree (PhyloLabel a) -> Tree a Source #
Remove branch lengths from tree.