HsHTSLib-1.3.2.3: 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.

hasMultiSegments :: Word16 -> Bool Source #

Template having multiple segments in sequencing

isProperAligned :: Word16 -> Bool Source #

Each segment properly aligned according to the aligner

isUnmapped :: Word16 -> Bool Source #

Segment unmapped

isNextUnmapped :: Word16 -> Bool Source #

Next segment in the template unmapped

isRC :: Word16 -> Bool Source #

SEQ being reverse complemented

isNextRC :: Word16 -> Bool Source #

SEQ of the next segment in the template being reverse complemented

isFirstSegment :: Word16 -> Bool Source #

The first segment in the template

isLastSegment :: Word16 -> Bool Source #

The last segment in the template

isSecondary :: Word16 -> Bool Source #

Secondary alignment

isBadQual :: Word16 -> Bool Source #

Not passing filters, such as platform/vendor quality controls

isDup :: Word16 -> Bool Source #

PCR or optical duplicate

isSupplementary :: Word16 -> Bool Source #

Supplementary alignment