Safe Haskell | Safe-Infered |
---|
Bio.Alignment.PSL
Description
This models the PSL format used by e.g. the alignment tool BLAT. It is a simple, textual representation of (spliced) alignments, with tab-separated fields.
See http://genome.ucsc.edu/FAQ/FAQformat#format2 for details.
- data PSL = PSL {
- match :: Int
- mismatch :: Int
- repmatch :: Int
- ncount :: Int
- qgapcount :: Int
- qgaplength :: Int
- tgapcount :: Int
- tgaplength :: Int
- strand :: ByteString
- qname :: ByteString
- qsize :: Int
- qstart :: Int
- qend :: Int
- tname :: ByteString
- tsize :: Int
- tstart :: Int
- tend :: Int
- blockcount :: Int
- blocksizes :: [Int]
- qstarts :: [Int]
- tstarts :: [Int]
- readPSL :: FilePath -> IO [PSL]
- writePSL :: FilePath -> [PSL] -> IO ()
- parsePSL :: ByteString -> [PSL]
- unparsePSL :: [PSL] -> ByteString
- pslHeader :: ByteString
Documentation
This encodes a PSL record, corresponding to one line of the PSL file.
Constructors
PSL | |
Fields
|
parsePSL :: ByteString -> [PSL]Source
Parse a ByteString
as a PSL file (note that it must contain the PSL header).
unparsePSL :: [PSL] -> ByteStringSource
Unparse a list of PSL
alignments encoding them into a ByteString
(not including PSL header).
The PSL header (version 3), as a ByteString
.