package phylogenetics

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

A single DNA base

include Alphabet.S_int
include Alphabet.S with type t = private int and type vector = private Linear_algebra.vec and type matrix = private Linear_algebra.mat and type 'a table = private 'a array
type t = private int
type vector = private Linear_algebra.vec
type matrix = private Linear_algebra.mat
type 'a table = private 'a array
val equal : t -> t -> bool
val compare : t -> t -> int
val all : t list
val card : int
val to_int : t -> int
val counts : t Core.Sequence.t -> int table
module Table : sig ... end
module Vector : sig ... end
val flat_profile : unit -> vector
val random_profile : Gsl.Rng.t -> float -> vector
module Matrix : sig ... end
val (.%()) : vector -> t -> float
val (.%()<-) : vector -> t -> float -> unit
val (.%{}) : matrix -> (t * t) -> float
val (.%{}<-) : matrix -> (t * t) -> float -> unit
val of_int : int -> t option
val of_int_exn : int -> t
val a : t
val c : t
val g : t
val t : t
val of_char_exn : Stdlib.Char.t -> t

Creates a DNA base from a char (case insensitive). Raises invalid_arg in case of incorrect char parameter.

val to_char : t -> Stdlib.Char.t

Returns a single capital character representing the base.

val transversion : t -> t -> bool
type repr =
  1. | A
  2. | C
  3. | G
  4. | T
val inspect : t -> repr
OCaml

Innovation. Community. Security.