Safe Haskell | None |
---|---|
Language | Haskell2010 |
Printers for BAM and SAM. BAM is properly supported, SAM can be piped to standard output.
- class IsBamRec a where
- encodeBamWith :: (MonadIO m, IsBamRec r) => Int -> BamMeta -> Enumeratee [r] ByteString m ()
- packBam :: BamRec -> IO BamRaw
- writeBamFile :: IsBamRec r => FilePath -> BamMeta -> Iteratee [r] IO ()
- writeBamHandle :: (MonadIO m, IsBamRec r) => Handle -> BamMeta -> Iteratee [r] m ()
- pipeBamOutput :: IsBamRec r => BamMeta -> Iteratee [r] IO ()
- pipeSamOutput :: MonadIO m => BamMeta -> Iteratee [BamRec] m ()
Documentation
class IsBamRec a where Source #
pushBam :: a -> BgzfTokens -> BgzfTokens Source #
encodeBamWith :: (MonadIO m, IsBamRec r) => Int -> BamMeta -> Enumeratee [r] ByteString m () Source #
Encodes BAM records straight into a dynamic buffer, the BGZF's it. Should be fairly direct and perform well.
writeBamFile :: IsBamRec r => FilePath -> BamMeta -> Iteratee [r] IO () Source #
Writes BAM encoded stuff to a file.
writeBamHandle :: (MonadIO m, IsBamRec r) => Handle -> BamMeta -> Iteratee [r] m () Source #
Writes BAM encoded stuff to a Handle
.