diversity-0.6.0.2: 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

diversityOfMap :: Double -> Map (Sample, Fragment) Int -> Double Source

Returns the diversity of a map of things

rarefactionCurve :: Bool -> Int -> Integer -> Integer -> Map (Sample, Fragment) Int -> IO [(Int, (Double, Double))] Source

Returns the rarefaction curve for each position in a list

rarefactionSampleCurve :: Bool -> Int -> Int -> Map (Sample, Fragment) Int -> 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