package biocaml

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Representation of partially parsed alignments. When traversing a BAM file for a specific calculation, it may be that only some fields of the alignment records are actually used. In that case, it can be significantly faster to use this representation. As a downside, some encoding errors in the BAM file can go unnoticed.

type t
include Sexplib0.Sexpable.S with type t := t
val t_of_sexp : Sexplib0__.Sexp.t -> t
val sexp_of_t : t -> Sexplib0__.Sexp.t
val qname : t -> string option
val ref_id : t -> int option
val rname : t -> Header.t -> string option Core.Or_error.t
val pos : t -> int option

Positions are 0-based, -1 if undefined

val mapq : t -> int option
val cigar : t -> Sam.cigar_op list Core.Or_error.t
val rnext : t -> Header.t -> Sam.rnext option Core.Or_error.t
val pnext : t -> int option
val tlen : t -> int option
val seq : t -> string option
val qual : t -> Phred_score.t list Core.Or_error.t
val optional_fields : t -> Sam.optional_field list Core.Or_error.t
val decode : t -> Header.t -> alignment Core.Or_error.t
val encode : alignment -> Header.t -> t Core.Or_error.t
OCaml

Innovation. Community. Security.