package biocaml

  1. Overview
  2. Docs
The OCaml Bioinformatics Library

Install

Dune Dependency

Authors

Maintainers

Sources

v0.10.0.tar.gz
md5=497e3f2f7128a6ca347d66848da38a3d
sha512=4a76ebbafda3bc944afaff40d69791dfe153a0638ef5d7e6e1bc962b7f991d9545cd0af2d7930b39f8b31dbf067d0603cfa03d9b7a49396ab1ae452df47fd1f3

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.