tlynx-0.4.1: Handle phylogenetic trees

Copyright(c) Dominik Schrempf 2020
LicenseGPL-3.0-or-later
Maintainerdominik.schrempf@gmail.com
Stabilityunstable
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

TLynx.Parsers

Description

Creation date: Wed Apr 22 13:34:35 2020.

Synopsis

Documentation

parseTree :: NewickFormat -> FilePath -> IO (Tree Phylo ByteString) Source #

Parse a Newick tree file or a Nexus file with Newick trees.

Error if no or more than one trees are found. Error if both file formats fail to parse.

parseTrees :: NewickFormat -> FilePath -> IO (Forest Phylo ByteString) Source #

Parse a Newick tree file or a Nexus file with Newick trees.

Error if both file formats fail to parse.

data NewickFormat #

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
Bounded NewickFormat 
Instance details

Defined in ELynx.Tree.Import.Newick

Enum NewickFormat 
Instance details

Defined in ELynx.Tree.Import.Newick

Eq NewickFormat 
Instance details

Defined in ELynx.Tree.Import.Newick

Read NewickFormat 
Instance details

Defined in ELynx.Tree.Import.Newick

Show NewickFormat 
Instance details

Defined in ELynx.Tree.Import.Newick

Generic NewickFormat 
Instance details

Defined in ELynx.Tree.Import.Newick

Associated Types

type Rep NewickFormat :: Type -> Type #

ToJSON NewickFormat 
Instance details

Defined in ELynx.Tree.Import.Newick

FromJSON NewickFormat 
Instance details

Defined in ELynx.Tree.Import.Newick

type Rep NewickFormat 
Instance details

Defined in ELynx.Tree.Import.Newick

type Rep NewickFormat = D1 (MetaData "NewickFormat" "ELynx.Tree.Import.Newick" "elynx-tree-0.4.1-1SsPt0HBser9elUK49IF2U" 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)))

newickHelp :: [String] Source #

Help for different NewickFormats.