sig
type item = string * int * int * Biocaml_table.Row.t
type parsing_spec = [ `enforce of Biocaml_table.Row.t_type | `strings ]
module Error :
sig
type parsing_base =
[ `wrong_format of
[ `column_number
| `float_of_string of string
| `int_of_string of string ] * Biocaml_table.Row.t_type *
string
| `wrong_number_of_columns of Biocaml_table.Row.t ]
type parsing = [ `bed of Biocaml_bed.Error.parsing_base ]
type t = Biocaml_bed.Error.parsing
val parsing_base_of_sexp :
Sexplib.Sexp.t -> Biocaml_bed.Error.parsing_base
val sexp_of_parsing_base :
Biocaml_bed.Error.parsing_base -> Sexplib.Sexp.t
val parsing_of_sexp : Sexplib.Sexp.t -> Biocaml_bed.Error.parsing
val sexp_of_parsing : Biocaml_bed.Error.parsing -> Sexplib.Sexp.t
val t_of_sexp : Sexplib.Sexp.t -> Biocaml_bed.Error.t
val sexp_of_t : Biocaml_bed.Error.t -> Sexplib.Sexp.t
end
exception Error of Biocaml_bed.Error.t
val in_channel_to_item_stream :
?buffer_size:int ->
?more_columns:Biocaml_bed.parsing_spec ->
Pervasives.in_channel ->
(Biocaml_bed.item, [> Biocaml_bed.Error.parsing ]) Core.Std.Result.t
Stream.t
val in_channel_to_item_stream_exn :
?buffer_size:int ->
?more_columns:Biocaml_bed.parsing_spec ->
Pervasives.in_channel -> Biocaml_bed.item Stream.t
val item_of_line :
how:Biocaml_bed.parsing_spec ->
Biocaml_lines.item ->
(Biocaml_bed.item, [> Biocaml_bed.Error.parsing ]) Core.Std.Result.t
val item_to_line : Biocaml_bed.item -> Biocaml_lines.item
module Transform :
sig
val string_to_item :
?more_columns:Biocaml_bed.parsing_spec ->
unit ->
(string,
(string * int * int * Biocaml_table.Row.item array,
[> Biocaml_bed.Error.parsing ])
Core.Std.Result.t)
Biocaml_transform.t
val item_to_string :
unit -> (Biocaml_bed.item, string) Biocaml_transform.t
end
val item_of_sexp : Sexplib.Sexp.t -> Biocaml_bed.item
val sexp_of_item : Biocaml_bed.item -> Sexplib.Sexp.t
val parsing_spec_of_sexp : Sexplib.Sexp.t -> Biocaml_bed.parsing_spec
val sexp_of_parsing_spec : Biocaml_bed.parsing_spec -> Sexplib.Sexp.t
end