Copyright | (c) Dominik Schrempf 2021 |
---|---|
License | GPL-3.0-or-later |
Maintainer | dominik.schrempf@gmail.com |
Stability | unstable |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Creation date: Thu Oct 4 18:54:51 2018.
This module is to be imported qualified.
Synopsis
- type Name = ByteString
- type Description = ByteString
- type Characters = Vector Character
- data Sequence = Sequence {}
- fromByteString :: ByteString -> Characters
- toByteString :: Characters -> ByteString
- header :: [Sequence] -> ByteString
- summarize :: Sequence -> ByteString
- summarizeSequences :: [Sequence] -> ByteString
- body :: [Sequence] -> ByteString
- length :: Sequence -> Int
- equalLength :: [Sequence] -> Bool
- longest :: [Sequence] -> Sequence
- trim :: Int -> Sequence -> Sequence
- concat :: Sequence -> Sequence -> Sequence
- concatSequences :: [[Sequence]] -> [Sequence]
- filterShorterThan :: Int -> [Sequence] -> [Sequence]
- filterLongerThan :: Int -> [Sequence] -> [Sequence]
- filterStandard :: [Sequence] -> [Sequence]
Types
type Name = ByteString Source #
For now, Name
s are just ByteString
s.
type Description = ByteString Source #
The description of a sequence.
type Characters = Vector Character Source #
The vector of characters of a sequence.
Sequences have a name, a possibly empty description, a code and hopefully a lot of data.
Sequence | |
|
Input
fromByteString :: ByteString -> Characters Source #
Convert byte string to sequence characters.
Output
toByteString :: Characters -> ByteString Source #
Convert sequence characters to byte string.
header :: [Sequence] -> ByteString Source #
A short description of the sequence.
summarizeSequences :: [Sequence] -> ByteString Source #
Trim and show a list of Sequence
s.
Analysis
Manipulation
Filtering
filterShorterThan :: Int -> [Sequence] -> [Sequence] Source #
Only take Sequence
s that are shorter than a given number.