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/LMap/index.html

Module Make.LMap

A set of locations with an attached value on each of them

type 'a t
val to_stream : 'a t -> (location * 'a) Stream.t
val of_stream : (location * 'a) Stream.t -> 'a t
val intersects : 'a t -> location -> bool

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

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

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

val intersecting_elems : 'a t -> location -> (location * 'a) Stream.t

intersecting_elems lmap loc returns a stream of elements in lmap whose location intersects with loc.

OCaml

Innovation. Community. Security.