elynx-tree-0.3.4: Handle phylogenetic trees

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

ELynx.Data.Tree.Supported

Description

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

Non-negativity of branch support values is not (yet) ensured. To ensure non-negativity, a newtype wrapper could be used, but this would be a major refactor.

Synopsis

Documentation

type BranchSupport = Double Source #

Branch support.

class Supported e where Source #

A branch label that supports extraction and setting of branch support values.

normalizeBranchSupport :: Supported e => Tree e a -> Tree e a Source #

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

collapse :: (Eq e, Eq a, Supported e) => BranchSupport -> Tree e a -> Tree e a Source #

Collapse branches with support lower than given value.

The branch and node labels of the collapsed branches are discarded.