package biotk

  1. Overview
  2. Docs
type t = {
  1. chr : string;
  2. lo : int;
  3. hi : int;
}
val equal : t -> t -> bool
val compare : t -> t -> int
include Ppx_sexp_conv_lib.Sexpable.S with type t := t
val t_of_sexp : Sexplib0__.Sexp.t -> t
val sexp_of_t : t -> Sexplib0__.Sexp.t
val of_string : string -> (t, [> `Parse_error ]) Stdlib.result
val of_string_exn : string -> t
val to_string : t -> string

String representation of a location, as <chr>:<start>-<end>

val range : t -> Range.t
val size : t -> int
val strictly_before : t -> t -> bool
val intersects : t -> t -> bool
val included_in : t -> t -> bool
val inter : t -> t -> t option
val relmove : t -> int -> int -> t
val relative : t -> int -> int -> t

relative loc x a b is the location obtained considering a and b as relative coordinates inside loc

val zoom : t -> float -> t

zoom l z is a location of width z *. float (Location.width l)

val dist : t -> t -> int option
val position : from:t -> t -> int option
val union : t -> t -> t option
module Set : Core_kernel.Set.S with type Elt.t := t
module Map : Core_kernel.Map.S with type Key.t := t
OCaml

Innovation. Community. Security.