elynx-tree-0.0.1: Handle phylogenetic trees

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

ELynx.Data.Tree.BranchSupportTree

Description

Creation date: Thu Jun 13 14:06:45 2019.

Synopsis

Documentation

type BranchSupport = Maybe Double Source #

At the moment, just use Double. It would be preferable to use a wrapper data type that can handle Int or Double.

class BranchSupportLabel a where Source #

A label that supports branch support values.

Methods

getBranchSupport :: a -> BranchSupport Source #

For now, branch support is a Double, but one could also think about bootstrap values, which are integers.

setBranchSupport :: BranchSupport -> a -> a Source #

normalize :: BranchSupportLabel a => Tree a -> Tree a Source #

Normalize branch support values. The maximum branch support value will be set to 1.0.

collapse :: BranchSupportLabel a => Double -> Tree a -> Tree a Source #

Collapse branches with support lower than given value. Note, branch length is ignored at the moment.