Module Biocaml.Bed (.ml)

module Bed: Biocaml_bed

type item = string * int * int * Biocaml_table.Row.t 
The type of BED data stream items.
type parsing_spec = [ `enforce of Biocaml_table.Row.t_type | `strings ] 
The specification of how to parse the remaining columns.
module Error: sig .. end
val item_of_line : how:parsing_spec ->
Biocaml_lines.item ->
(item, [> Error.parsing ]) Core.Result.t
Basic parsing of a single line.
val item_to_line : item -> Biocaml_lines.item
Basic “printing” of one single item.
module Transform: sig .. end
val item_of_sexp : Sexplib.Sexp.t -> item
val sexp_of_item : item -> Sexplib.Sexp.t
The type of BED data stream items.
val parsing_spec_of_sexp : Sexplib.Sexp.t -> parsing_spec
val parsing_spec_of_sexp__ : Sexplib.Sexp.t -> parsing_spec
val sexp_of_parsing_spec : parsing_spec -> Sexplib.Sexp.t
The specification of how to parse the remaining columns.

Definitions of error types (with sexp)

Basic parsing of a single line.

Basic “printing” of one single item.

Create a Biocaml_transform.t-based parser, while providing the format of the additional columns (default `strings).

Create a Biocaml_transform.t which “prints” BED data (reminder: includes ends-of-line).