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 -> t -> int
val t_of_sexp : Sexplib0.Sexp.t -> t
val sexp_of_t : t -> Sexplib0.Sexp.t
val make : Core_kernel.String.t -> int -> int -> t Core_kernel.Or_error.t
val seq : t -> Core_kernel.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_kernel.Or_error.t

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

OCaml

Innovation. Community. Security.