biopsl-0.4: Library and executables for working with PSL files

Safe HaskellSafe
LanguageHaskell98

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.

Synopsis

Documentation

data PSL #

This encodes a PSL record, corresponding to one line of the PSL file.

Instances

Eq PSL # 

Methods

(==) :: PSL -> PSL -> Bool #

(/=) :: PSL -> PSL -> Bool #

Show PSL # 

Methods

showsPrec :: Int -> PSL -> ShowS #

show :: PSL -> String #

showList :: [PSL] -> ShowS #

readPSL :: FilePath -> IO [PSL] #

Read and parse a PSL file.

writePSL :: FilePath -> [PSL] -> IO () #

Create a PSL file from a list of alignments.

printPSL :: [PSL] -> IO () #

parsePSL :: ByteString -> [PSL] #

Parse a ByteString as a PSL file (note that it must contain the PSL header).

unparsePSL :: [PSL] -> ByteString #

Unparse a list of PSL alignments encoding them into a ByteString (not including PSL header).

pslHeader :: ByteString #

The PSL header (version 3), as a ByteString.