package biocaml
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=fae219e66db06f81f3fd7d9e44717ccf2d6d85701adb12004ab4ae6d3359dd2d
sha512=f6abd60dac2e02777be81ce3b5acdc0db23b3fa06731f5b2d0b32e6ecc9305fe64f407bbd95a3a9488b14d0a7ac7c41c73a7e18c329a8f18febfc8fd50eccbc6
doc/biocaml.unix/Biocaml_unix/Bed/index.html
Module Biocaml_unix.Bed
Source
BED data files.
A BED file is in the format shown below, where columns must be separated by a tab character.
chrA lo1 hi1 chrA lo2 hi2 . . . . . . . . . chrB lo1 hi1 chrB lo2 hi2 . . . . . . . . .
The definition is that intervals are zero based and half-open. So by default the line "chrA lo hi" is parsed to the interval [lo + 1, hi]
on chromosome chrA
. Similarly, when printing, the default is to print [lo - 1, hi]
. The optional argument increment_lo_hi
allows changing this behavior for non-conformant files. In addition, the optional argument chr_map
is a string -> string
function that allows changing of the chromosome name to a specified format, and defaults to identity
.
Some tools require that the set of intervals do not overlap within each chromosome. This is not enforced, but you can use any_overlap
to verify this property when needed.
Item Types
The type of BED data stream items.
Tags: Describe The Format: TODO
The specification of how to parse the remaining columns.
Error Types
In_channel
Functions
val in_channel_to_item_stream :
?buffer_size:int ->
?more_columns:parsing_spec ->
Core.In_channel.t ->
(item, [> Error.parsing ]) Core.result Stream.t
Parse an input-channel into item
values.
val in_channel_to_item_stream_exn :
?buffer_size:int ->
?more_columns:parsing_spec ->
Core.In_channel.t ->
item Stream.t
Like in_channel_to_item_stream
but use exceptions for errors (raised within Stream.next
).
Conversions to/from Line.t
See also Line.t
.
Basic parsing of a single line.
Basic “printing” of one single item
.