poseidon-hs-1.5.5.0: A package with tools for working with Poseidon genotype data
Safe HaskellSafe-Inferred
LanguageHaskell2010

Poseidon.CLI.Summarise

Synopsis

Documentation

data SummariseOptions Source #

A datatype representing command line options for the summarise command

runSummarise :: SummariseOptions -> PoseidonIO () Source #

The main function running the janno command

summariseJannoRows :: JannoRows -> Bool -> IO () Source #

A function to print meaningful summary information for a list of poseidon samples

paste :: [String] -> String Source #

A helper function to concat the first N elements of a string list in a nice way

uniqueNumber :: Ord a => [a] -> String Source #

frequency :: Ord a => [a] -> [(a, Int)] Source #

A helper function to determine the frequency of objects in a list (similar to the table function in R)

sortTupelsBySndDesc :: (Ord a, Ord b) => (a, b) -> (a, b) -> Ordering Source #

printFrequency :: Show a => String -> [(a, Int)] -> String Source #

A helper function to print the output of frequency nicely

printFrequencyMaybe :: Show a => String -> [(Maybe a, Int)] -> String Source #

A helper function to print the output of frequency over Maybe values nicely

maybeShow :: Show a => Maybe a -> String Source #

A helper function to unwrap a maybe

printFrequencyString :: String -> [(String, Int)] -> String Source #

As printFrequency, but without additional quoting of strings

printFrequencyMaybeString :: String -> [(Maybe String, Int)] -> String Source #

As printFrequencyMaybe, but without additional quoting of strings

maybeShowString :: Maybe String -> String Source #

As maybeShow, but without additional quoting of strings