elynx-tree-0.3.4: Handle phylogenetic trees

Safe HaskellNone
LanguageHaskell2010

ELynx.Import.Tree.Newick

Description

module header.

Synopsis

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.

Constructors

Standard 
IqTree 
RevBayes 
Instances
Bounded NewickFormat Source # 
Instance details

Defined in ELynx.Import.Tree.Newick

Enum NewickFormat Source # 
Instance details

Defined in ELynx.Import.Tree.Newick

Eq NewickFormat Source # 
Instance details

Defined in ELynx.Import.Tree.Newick

Read NewickFormat Source # 
Instance details

Defined in ELynx.Import.Tree.Newick

Show NewickFormat Source # 
Instance details

Defined in ELynx.Import.Tree.Newick

Generic NewickFormat Source # 
Instance details

Defined in ELynx.Import.Tree.Newick

Associated Types

type Rep NewickFormat :: Type -> Type #

ToJSON NewickFormat Source # 
Instance details

Defined in ELynx.Import.Tree.Newick

FromJSON NewickFormat Source # 
Instance details

Defined in ELynx.Import.Tree.Newick

type Rep NewickFormat Source # 
Instance details

Defined in ELynx.Import.Tree.Newick

type Rep NewickFormat = D1 (MetaData "NewickFormat" "ELynx.Import.Tree.Newick" "elynx-tree-0.3.4-LQCElpJLZESF8ouYw4ZWeR" False) (C1 (MetaCons "Standard" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "IqTree" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "RevBayes" PrefixI False) (U1 :: Type -> Type)))

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.