Decoder of BAM alignment blocks.
Decoder of BAM alignment blocks.
(decode-alignment refs block)
(decode-alignment refs block start end)
Decodes BAM block and creates SAMAlignment instance which is compatible with SAM. When called with start and end, this function may return nil if any base of the block is not included in the range.
Decodes BAM block and creates SAMAlignment instance which is compatible with SAM. When called with start and end, this function may return nil if any base of the block is not included in the range.
(decode-coordinate-block block)
(decode-coordinate-block block start end)
Decodes BAM block and returns a SAMCoordinateBlock instance containing ref-id, pos and flag.
Decodes BAM block and returns a SAMCoordinateBlock instance containing ref-id, pos and flag.
(decode-next-ref-id refs ref-id next-ref-id)
Returns "=" if ref and next is same reference, otherwise returns next-ref-name.
Returns "=" if ref and next is same reference, otherwise returns next-ref-name.
(decode-options rest')
Decodes bytes of bam options.
Decodes bytes of bam options.
(decode-pointer-block block)
(decode-pointer-block block start end)
Decodes BAM block and returns a BAMPointerBlock instance containing region, flag and block pointers.
Decodes BAM block and returns a BAMPointerBlock instance containing region, flag and block pointers.
(decode-qual b)
Decodes qual from bytes. Returns "*" if input is filled with 0xff, otherwise returns qual.
Decodes qual from bytes. Returns "*" if input is filled with 0xff, otherwise returns qual.
(decode-queryname-block block)
(decode-queryname-block block start end)
Decodes BAM block and returns a SAMQuerynameBlock instance containing qname and flag.
Decodes BAM block and returns a SAMQuerynameBlock instance containing qname and flag.
(decode-region-block block)
(decode-region-block block start end)
Decodes BAM block and returns a SAMRegionBlock instance containing covering range of the alignment.
Decodes BAM block and returns a SAMRegionBlock instance containing covering range of the alignment.
(decode-seq seq-bytes length)
Decodes seq from bytes. Returns "*" if seq is empty, otherwise returns sequence.
Decodes seq from bytes. Returns "*" if seq is empty, otherwise returns sequence.
(options-size block-size l-read-name n-cigar-op l-seq)
Returns the number of bytes of the trailing optional fields.
Returns the number of bytes of the trailing optional fields.
(parse-tag-single tag-type bb)
Parses a tag according to tag-type
.
Parses a tag according to `tag-type`.
(raw-block b)
(raw-block b s e)
Checks the range of BAM block and returns the given block if any base is included.
Checks the range of BAM block and returns the given block if any base is included.
(validate-tag-type t)
Changes (u)int8 or (u)int16 tag type to int32 tag type.
Changes (u)int8 or (u)int16 tag type to int32 tag type.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close