HsHTSLib-1.3.2.0: High level bindings to htslib.

Safe HaskellNone
LanguageHaskell2010

Bio.HTS

Synopsis

Documentation

getChrId :: Bam -> Int32 Source #

Return the chromosome id.

getChr :: Ptr BamHdr -> Bam -> Maybe ByteString Source #

Return the chromosome name given the bam file header.

position :: Bam -> Int32 Source #

Return the 0-based starting location.

endPos :: Bam -> Int32 Source #

For a mapped read, this is just position + cigar2rlen. For an unmapped read (either according to its flags or if it has no cigar string), we return position + 1 by convention.

queryLen :: Bam -> Int32 Source #

Return the query length (read length).

isRev :: Bam -> Bool Source #

Whether the query is on the reverse strand.

flag :: Bam -> Word16 Source #

Return the flag.

mapq :: Bam -> Word8 Source #

MAPping Quality. It equals −10 log10 Pr{mapping position is wrong}, rounded to the nearest integer. A value 255 indicates that the mapping quality is not available.

getSeq :: Bam -> Maybe ByteString Source #

Return the DNA sequence.

qName :: Bam -> ByteString Source #

Get the name of the query.

matePos :: Bam -> Int32 Source #

0-based

bamToSam :: Ptr BamHdr -> Bam -> Sam Source #

Convert Bam record to Sam record.