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/GenomeMap/Make/LSet/index.html

Module Make.LSet

A set of locations (e.g. a set of gene loci)

type t
val to_stream : t -> location Stream.t
val of_stream : location Stream.t -> t
val intersects : t -> location -> bool

intersects lset loc returns true if loc has a non-empty intersection with one of the locations in lset, and returns false otherwise

val closest : t -> location -> (location * int) option

closest lset loc returns the location in lset that is the closest to loc, along with the actual (minimal) distance. Returns None if there is no location in lset that comes from the same chromosome than loc.

val intersecting_elems : t -> location -> location Stream.t

intersecting_elems lset loc returns a stream of all locations in lset that intersect loc.

OCaml

Innovation. Community. Security.