bio-0.4.5: A bioinformatics librarySource codeContentsIndex
Bio.Util.TestBase
Synopsis
data Test = forall t . Testable t => T String t
newtype Nucleotide = N Char
newtype Quality = Q Word8
fromN :: Nucleotide -> Char
fromQ :: Quality -> Word8
newtype EST = E (Sequence Nuc)
newtype ESTq = Eq (Sequence Nuc)
newtype Protein = P (Sequence Amino)
newtype EST_short = ES (Sequence Nuc)
newtype EST_long = EL (Sequence Nuc)
newtype EST_set = ESet [Sequence Nuc]
time :: String -> IO () -> IO ()
showT :: Integral a => a -> String
integralRandomR :: (Integral a, RandomGen g) => (a, a) -> g -> (a, g)
genOffset :: Gen Offset
genNonNegOffset :: Gen Offset
genPositiveOffset :: Gen Offset
Documentation
data Test Source
Constructors
forall t . Testable t => T String t
newtype Nucleotide Source
Constructors
N Char
show/hide Instances
newtype Quality Source
Constructors
Q Word8
show/hide Instances
fromN :: Nucleotide -> CharSource
fromQ :: Quality -> Word8Source
newtype EST Source
For testing, variable lengths
Constructors
E (Sequence Nuc)
show/hide Instances
newtype ESTq Source
Constructors
Eq (Sequence Nuc)
show/hide Instances
newtype Protein Source
Constructors
P (Sequence Amino)
show/hide Instances
newtype EST_short Source
For benchmarking, fixed lengths
Constructors
ES (Sequence Nuc)
show/hide Instances
newtype EST_long Source
Constructors
EL (Sequence Nuc)
show/hide Instances
newtype EST_set Source
Constructors
ESet [Sequence Nuc]
show/hide Instances
time :: String -> IO () -> IO ()Source
Take time (CPU and wall clock) and report it
showT :: Integral a => a -> StringSource
Print a CPUTime difference
integralRandomR :: (Integral a, RandomGen g) => (a, a) -> g -> (a, g)Source
Shamelessly stolen from FPS
genOffset :: Gen OffsetSource
Constrained position generators
genNonNegOffset :: Gen OffsetSource
genPositiveOffset :: Gen OffsetSource
Produced by Haddock version 2.6.1