bioinformatics-toolkit-0.5.0: A collection of bioinformatics tools

Safe HaskellNone
LanguageHaskell2010

Bio.Data.Bed.Types

Contents

Synopsis

Documentation

class BEDLike b where Source #

A class representing BED-like data, e.g., BED3, BED6 and BED12. BED format uses 0-based index (see documentation).

Minimal complete definition

chrom, chromStart, chromEnd, name, score, strand

Methods

chrom :: Lens' b ByteString Source #

Field lens

chromStart :: Lens' b Int Source #

chromEnd :: Lens' b Int Source #

name :: Lens' b (Maybe ByteString) Source #

score :: Lens' b (Maybe Double) Source #

strand :: Lens' b (Maybe Bool) Source #

size :: b -> Int Source #

Return the size of a bed region.

class BEDLike b => BEDConvert b where Source #

Minimal complete definition

asBed, fromLine, toLine

Methods

asBed :: ByteString -> Int -> Int -> b Source #

Construct bed record from chromsomoe, start location and end location

fromLine :: ByteString -> b Source #

Convert bytestring to bed format

toLine :: b -> ByteString Source #

Convert bed to bytestring

convert :: BEDLike b' => b' -> b Source #

BED6 format

BED3 format

data BEDExt bed a Source #

Constructors

BEDExt 

Fields

Instances

(Eq a, Eq bed) => Eq (BEDExt bed a) Source # 

Methods

(==) :: BEDExt bed a -> BEDExt bed a -> Bool #

(/=) :: BEDExt bed a -> BEDExt bed a -> Bool #

(Read a, Read bed) => Read (BEDExt bed a) Source # 

Methods

readsPrec :: Int -> ReadS (BEDExt bed a) #

readList :: ReadS [BEDExt bed a] #

readPrec :: ReadPrec (BEDExt bed a) #

readListPrec :: ReadPrec [BEDExt bed a] #

(Show a, Show bed) => Show (BEDExt bed a) Source # 

Methods

showsPrec :: Int -> BEDExt bed a -> ShowS #

show :: BEDExt bed a -> String #

showList :: [BEDExt bed a] -> ShowS #

(Default a, Read a, Show a, BEDConvert bed) => BEDConvert (BEDExt bed a) Source # 

Methods

asBed :: ByteString -> Int -> Int -> BEDExt bed a Source #

fromLine :: ByteString -> BEDExt bed a Source #

toLine :: BEDExt bed a -> ByteString Source #

convert :: BEDLike b' => b' -> BEDExt bed a Source #

BEDLike bed => BEDLike (BEDExt bed a) Source # 

_data :: forall bed a a. Lens (BEDExt bed a) (BEDExt bed a) a a Source #

_bed :: forall bed a bed. Lens (BEDExt bed a) (BEDExt bed a) bed bed Source #