package biocaml

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

Range on a sequence, where the sequence is represented by an identifier.

This datatype can be used to represent genomic regions with a triplet (chromosome, start, end) as can be found in say, BED files. The Seq_range.Make functor offers some genericity for the choice of the type representing a sequence identifier, while the module offers the most frequent case when the identifier is a simple string.

Most operations on Seq_range.t are simple extensions of operations on Range.t.

module type Identifier = sig ... end
module Make (S : Identifier) : sig ... end
include sig ... end
val compare : t Base__Ppx_compare_lib.compare
val t_of_sexp : Sexplib0__.Sexp.t -> t
val sexp_of_t : t -> Sexplib0__.Sexp.t
val make : Core.String.t -> int -> int -> t Core.Or_error.t
val seq : t -> Core.String.t
val size : t -> int
val to_string : t -> string

String representation of a sequence range, as <seq>:<start>-<end>

val of_string : string -> t Core.Or_error.t

Parses a string representation of a sequence range, as <seq>:<start>-<end>

OCaml

Innovation. Community. Security.