Taxonomy-2.0.0: Libary for parsing, processing and vizualization of taxonomy data

Safe HaskellNone
LanguageHaskell2010

Biobase.Taxonomy.Utils

Contents

Description

Functions for processing of taxonomy data.

Synopsis

Datatypes

Processing

compareSubTrees :: [Gr SimpleTaxon Double] -> (Int, Gr CompareTaxon Double) Source #

Extract a subtree correpsonding to input node paths to root. Only nodes in level number distance to root are included. Used in Ids2TreeCompare tool.

extractTaxonomySubTreebyLevel :: [Node] -> Gr SimpleTaxon Double -> Maybe Int -> Gr SimpleTaxon Double Source #

Extract a subtree corresponding to input node paths to root. Only nodes in level number distance to root are included. Used in Ids2Tree tool.

extractTaxonomySubTreebyLevelNew :: [Node] -> Gr SimpleTaxon Double -> Maybe Int -> Gr SimpleTaxon Double Source #

Extract a subtree corresponding to input node paths to root. Only nodes in level number distance to root are included. Used in Ids2Tree tool.

extractTaxonomySubTreebyRank :: [Node] -> Gr SimpleTaxon Double -> Maybe Rank -> Gr SimpleTaxon Double Source #

Extract a subtree corresponding to input node paths to root. If a Rank is provided, all node that are less or equal are omitted

safeNodePath :: Maybe Node -> Gr SimpleTaxon Double -> Maybe Node -> Either String Path Source #

Returns path between 2 maybe nodes. Used in TreeDistance tool.

getParentbyRank :: Node -> Gr SimpleTaxon Double -> Maybe Rank -> Maybe (Node, SimpleTaxon) Source #

Extract parent node with specified Rank