Module Biocaml_seq_range (.ml)

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 Biocaml_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 Biocaml_seq_range.t are simple extensions of operations on Biocaml_range.t.

module Biocaml_seq_range: 
module type Identifier = 
include Comparable
include Sexpable
val to_string : t -> string

module Make: 
functor (S : Identifier) ->
type t = S.t * Biocaml_range.t 
val make : S.t -> int -> int -> t Core.Std.Or_error.t
val seq : t -> S.t
val size : t -> int
val to_string : t -> string
val t_of_sexp : Sexplib.Sexp.t -> t
val sexp_of_t : t -> Sexplib.Sexp.t
val compare : t -> t -> int

String representation of a sequence range, as <seq>:<start>-<end>
include ??
val of_string : string -> t Core.Std.Or_error.t
Parses a string representation of a sequence range, as <seq>:<start>-<end>