bioinformatics-toolkit-0.3.2: A collection of bioinformatics tools

Safe HaskellNone
LanguageHaskell2010

Bio.Seq.IO

Synopsis

Documentation

data Genome Source #

The first 2048 bytes are header. Header consists of a magic string, followed by chromosome information. Example: HASKELLBIOINFORMATICSnCHR1 START SIZE

withGenome :: FilePath -> (Genome -> IO a) -> IO a Source #

getSeq :: BioSeq s a => Genome -> Query -> IO (Either String (s a)) Source #

Retrieve sequence.

getChrom :: Genome -> ByteString -> IO (Either String (DNA IUPAC)) Source #

Retrieve whole chromosome.

getChrSizes :: Genome -> [(ByteString, Int)] Source #

Retrieve chromosome size information.

mkIndex Source #

Arguments

:: [FilePath]

A list of fasta files. Each file can have multiple chromosomes.

-> FilePath

output file

-> IO () 

Indexing a genome.