package biocaml

  1. Overview
  2. Docs
The OCaml Bioinformatics Library

Install

Dune Dependency

Authors

Maintainers

Sources

v0.10.1.tar.gz
md5=4cf944bcae5d36bf47b67f6bcb2455d7
sha512=0262b5768aefd7c080f664c46c88876fce9a658cc6a87358a77b7112c49ae3042e7ab542e76be5738fbaeda853149b308b48d4897960b5c7ae3b4da71d978bd8

doc/biocaml.unix/Biocaml_unix/RSet/index.html

Module Biocaml_unix.RSet

Efficient integer sets when many elements expected to be large contiguous sequences of integers.

type t

Type of a set of integers.

type range = Range.t
val empty : t

The empty set.

val of_range_list : (int * int) list -> t

Construct the set of integers representing the union of integers in all given ranges.

val to_range_list : t -> (int * int) list

Return set of integers as a minimal list of non-overlapping ranges in ascending order by their coordinates.

val to_list : t -> int list

Return set of integers as a list. Elements will be in ascending order.

val size : t -> int

Number of elements in set.

val is_empty : t -> bool

Return true if given set is empty.

val inter : t -> t -> t

Set intersection.

val union : t -> t -> t

Set union.

val diff : t -> t -> t

Set difference. diff s t is the set of elements that are in s but not in t.

val subset : t -> t -> bool

subset s t returns true if s is a subset of t.

OCaml

Innovation. Community. Security.