seqloc-datafiles-0.4: Read and write BED and GTF format genome annotations

Safe HaskellNone
LanguageHaskell98

Bio.SeqLoc.Bed

Description

Utilities for reading and writing BED format gene annotations

Synopsis

Documentation

readBedTranscripts :: FilePath -> IO [Transcript] Source

Read all BED format annotations in a BED file

bedZP :: Parser Transcript Source

Minimalistic Parser-style parser for a BED format line, not including the trailing newline.

bedTranscriptEnum :: Monad m => Iteratee [Transcript] m a -> Iteratee ByteString m a Source

Iteratee to convert an Iteratee over a ByteString, such as the standard fileDriver, into an iteratee over a list of Transcript annotations from the file.

bedConduit :: (Monad m, MonadBase IO m) => Conduit ByteString m Transcript Source

Conduit from a ByteString source such as a BED file to a source of Transcript annotations from the file.

transcriptToBed Source

Arguments

:: ByteString

score

-> ByteString

itemRGB

-> Transcript

transcript

-> ByteString 

Convert a Transcript to a BED annotation line, specifying the score and itemRGB fields.

transcriptToBedStd :: Transcript -> ByteString Source

Convert a Transcript to a BED annotation line.