Safe Haskell | None |
---|---|
Language | Haskell2010 |
module header.
Synopsis
- data NewickFormat
- description :: NewickFormat -> String
- newick :: NewickFormat -> Parser (Tree Phylo ByteString)
- oneNewick :: NewickFormat -> Parser (Tree Phylo ByteString)
- someNewick :: NewickFormat -> Parser (Forest Phylo ByteString)
Documentation
data NewickFormat Source #
Newick tree format.
>>>
unlines $ map (("- " <>) . description) (allValues :: [NewickFormat])
- Standard: Branch support values are stored in square brackets after branch lengths. - IqTree: Branch support values are stored as node names after the closing bracket of forests. - RevBayes: Key-value pairs is provided in square brackets after node names as well as branch lengths. XXX: Key value pairs are ignored at the moment.
Instances
description :: NewickFormat -> String Source #
Short description of the supported Newick formats.
newick :: NewickFormat -> Parser (Tree Phylo ByteString) Source #
Parse a single Newick tree. Also succeeds when more trees follow.
oneNewick :: NewickFormat -> Parser (Tree Phylo ByteString) Source #
Parse a single Newick tree. Fails when end of file is not reached.
someNewick :: NewickFormat -> Parser (Forest Phylo ByteString) Source #
Parse one or more Newick trees until end of file.