biofastq-0.1: A library for reading FASTQ files

Safe HaskellNone

Bio.Sequence.FastQ

Contents

Description

Support the FastQ format that combines sequence and quality. See:

Of course, this is yet another vaguely defined pseudo-standard with conflicting definitions. Of course Solexa had to go and invent not one, but two different, and indistinguishably so, ways to do it:

Sanger-style FastQ-format is supported with the (h)read/writeSangerQ functions, and the new IlluminaSolexa-style with (h)readwriteIllumina.

As far as I know, FastQ is only used for nucleotide sequences, never amino acid.

Synopsis

Reading FastQ

readFastQ :: FilePath -> IO [Sequence]Source

Deprecated: FastQ assumes Sanger-style quality info use {read,write}SangerQ or -Illumina instead

hReadFastQ :: Handle -> IO [Sequence]Source

Deprecated: FastQ assumes Sanger-style quality info use {read,write}SangerQ or -Illumina instead

parse :: [ByteString] -> Maybe (Either String Sequence, [ByteString])Source

Parse one FastQ entry, suitable for using in unfoldr over lines from a file

Writing FastQ

writeFastQ :: FilePath -> [Sequence] -> IO ()Source

Deprecated: FastQ assumes Sanger-style quality info use {read,write}SangerQ or -Illumina instead

hWriteFastQ :: Handle -> [Sequence] -> IO ()Source

Deprecated: FastQ assumes Sanger-style quality info use {read,write}SangerQ or -Illumina instead

use Sanger-style quality information

readSangerQ :: FilePath -> IO [Sequence]Source

hReadSangerQ :: Handle -> IO [Sequence]Source

writeSangerQ :: FilePath -> [Sequence] -> IO ()Source

hWriteSangerQ :: Handle -> [Sequence] -> IO ()Source

use Illumina (>v1.3)-style quality information

readIllumina :: FilePath -> IO [Sequence]Source

hReadIllumina :: Handle -> IO [Sequence]Source

writeIllumina :: FilePath -> [Sequence] -> IO ()Source

hWriteIllumina :: Handle -> [Sequence] -> IO ()Source