elynx-tree-0.1.0: Handle phylogenetic trees

Copyright(c) Dominik Schrempf 2019
LicenseGPL-3
Maintainerdominik.schrempf@gmail.com
Stabilityunstable
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

ELynx.Import.Tree.Newick

Contents

Description

Creation date: Thu Jan 17 14:56:27 2019.

Code partly taken from Biobase.Newick.Import.

Specifications

  • In particular, no conversion from _ to (space) is done right now.
Synopsis

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 #

A leaf is a node without children.

name :: Parser ByteString Source #

A name can be any string of printable characters except blanks, colons, semicolons, parentheses, and square brackets (and commas).

branchLength :: Parser (Maybe Double) Source #

Branch length.

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.