bioinformatics-toolkit-0.9.2: A collection of bioinformatics tools

Safe HaskellNone
LanguageHaskell2010

Bio.Utils.Misc

Synopsis

Documentation

bins :: Int -> (Int, Int) -> [(Int, Int)] Source #

divide a given region into k equal size sub-regions, discarding leftovers

binBySize :: Int -> (Int, Int) -> [(Int, Int)] Source #

divide a given half-close-half-open region into fixed size half-close-half-open intervals, discarding leftovers

binBySizeLeft :: Int -> (Int, Int) -> [(Int, Int)] Source #

Including leftovers, the last bin will be extended to match desirable size

binBySizeOverlap :: Int -> Int -> (Int, Int) -> [(Int, Int)] Source #