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

Safe HaskellNone



Collection of functions pertaining to getting random samples from - a population



subsample :: (Eq a, Ord a) => Int -> Int -> StdGen -> [a] -> [a] Source

Gets a random sampling by getting either the requested amount either directly or through the inverse (for speed)

subsampleSpecies :: (Eq a, Ord a) => Int -> Int -> StdGen -> [a] -> Int Source

Get the number of types of entities in a subsample

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

Repeat the sampling to get a median and MAD value for the runs for the expected species counts