elynx-seq-0.1.0: Handle molecular sequences

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

ELynx.Data.Alphabet.DistributionDiversity

Contents

Description

Creation date: Mon Feb 25 13:32:56 2019.

Synopsis

Entropy

entropy :: Vector Double -> Double Source #

Entropy of vector.

kEffEntropy :: Vector Double -> Double Source #

Effective number of used characters measured using entropy. The result only makes sense when the sum of the array is 1.0.

Homoplasy

homoplasy :: Vector Double -> Double Source #

Probability of homoplasy of vector. The result is the probability of binomially sampling the same character twice and only makes sense when the sum of the array is 1.0.

kEffHomoplasy :: Vector Double -> Double Source #

Effective number of used characters measured using homoplasy. The result only makes sense when the sum of the array is 1.0.

Count characters

frequencyCharacters :: AlphabetSpec -> Vector Character -> Vector Double Source #

For a given code vector of characters, calculate frequency of characters. The input vector has arbitrary length (most often the number of sequences in an alignment), the length of the output vector is the number of characters in the alphabet.