Module
Bio.Phylogeny
- Package
- purescript-phylio
- Repository
- vibbits/phylio
#Taxa Source
type Taxa = PhylogenyNode
A node in the phylogeny graph.
#dot Source
dot :: Phylogeny -> String
Generate a GraphViz DOT representation of this phylogeny For more information about DOT see this URL: https://graphviz.org/doc/info/lang.html
#lookupNode Source
lookupNode :: Phylogeny -> NodeIdentifier -> Maybe PhylogenyNode
Given a Phylogeny
and a ref
(identifier) get the Taxa
for that ref
.
#parseNewick Source
parseNewick :: String -> Either ParseError Phylogeny
Parse a phylogeny serialised with the Newick format. Some variations of Newick are also supported.
#parseNexus Source
parseNexus :: String -> Either ParseError Phylogeny
Parse a phylogeny serialised with the Nexus format
#parsePhyloXml Source
parsePhyloXml :: String -> Either ParseError Phylogeny
Parse a phylogeny serialised with the PhyloXML format
#reportError Source
reportError :: String -> ParseError -> String
When a ParseError
occurs, you can use this function to turn
it into a helpful error message. The second argument is the
input that failed parsing.
> lmap (parseNewick ")") (reportError ")")
Left ")\n^"