diversity-0.5.0.0: Return the diversity at each position for all sequences in a fasta file

Safe HaskellNone
LanguageHaskell98

Math.Diversity.Diversity

Description

Collection of functions pertaining to finding the diversity of samples.

Synopsis

Documentation

hamming :: String -> String -> Int Source

Takes two strings, returns Hamming distance

diversity :: Ord b => Double -> [b] -> Double Source

Returns the diversity of a list of things

rarefactionCurve :: (Eq a, Ord a) => Bool -> Int -> Integer -> Integer -> [a] -> IO [(Int, (Double, Double))] Source

Returns the rarefaction curve for each position in a list

rarefactionSampleCurve :: (Ord a, Ord b) => Bool -> Int -> Int -> [(a, b)] -> IO [(Int, (Double, Double))] Source

Returns the rarefaction curve for each position in a list

rarefactionViable :: [Double] -> Double Source

Calculates the percent of the curve that is above 95% of height of the curve