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 14:56:27 2019.
Code partly taken from Biobase.Newick.Import.
- In particular, no conversion from _ to (space) is done right now.
Synopsis
- type Parser = Parsec Void ByteString
- newick :: Parser (Tree (PhyloLabel ByteString))
- oneNewick :: Parser (Tree (PhyloLabel ByteString))
- manyNewick :: Parser [Tree (PhyloLabel ByteString)]
- forest :: Parser [Tree (PhyloLabel ByteString)]
- leaf :: Parser (Tree (PhyloLabel ByteString))
- node :: Parser (PhyloLabel ByteString)
- name :: Parser ByteString
- branchLength :: Parser (Maybe Double)
- newickIqTree :: Parser (Tree (PhyloLabel ByteString))
- oneNewickIqTree :: Parser (Tree (PhyloLabel ByteString))
- manyNewickIqTree :: Parser [Tree (PhyloLabel ByteString)]
Documentation
Newick tree format
newick :: Parser (Tree (PhyloLabel ByteString)) Source #
Parse a single Newick tree. Also succeeds when more trees follow.
oneNewick :: Parser (Tree (PhyloLabel ByteString)) Source #
Parse a single Newick tree. Fails when end of file is not reached.
manyNewick :: Parser [Tree (PhyloLabel ByteString)] Source #
Parse many Newick trees until end of file.
forest :: Parser [Tree (PhyloLabel ByteString)] Source #
A forest
is a set of trees separated by ,
and enclosed by parentheses.
leaf :: Parser (Tree (PhyloLabel ByteString)) Source #
node :: Parser (PhyloLabel ByteString) Source #
A node
has a name and a branchLength
.
name :: Parser ByteString Source #
A name can be any string of printable characters except blanks, colons, semicolons, parentheses, and square brackets (and commas).
Newick tree format with branch support as node names (e.g., used by IQ-TREE)
newickIqTree :: Parser (Tree (PhyloLabel ByteString)) Source #
IQ-TREE stores the branch support as node names after the closing bracket of a forest.
oneNewickIqTree :: Parser (Tree (PhyloLabel ByteString)) Source #
IQ-TREE stores the branch support as node names after the closing bracket of a forest.
manyNewickIqTree :: Parser [Tree (PhyloLabel ByteString)] Source #
IQ-TREE stores the branch support as node names after the closing bracket of a forest.