Module Biocaml_wig.Transform (.ml)

module Transform: 
sig

Low-level Biocaml_transform.t.
val string_to_item : ?filename:string ->
?tags:Biocaml_wig.Tags.t ->
unit ->
(string,
(Biocaml_wig.item, [> Biocaml_wig.Error.parsing ])
Biocaml_internal_utils.Result.t)
Biocaml_transform.t
Create the parsing Biocaml_transform.t. The parser is "best-effort" and stateless (i.e. a line containing "1000 42." will parsed succesfully as a `variable_step_value (1000, 42.) even if no "variableStep" was line present before).
val item_to_string : ?tags:Biocaml_wig.Tags.t ->
unit -> (Biocaml_wig.item, string) Biocaml_transform.t
Create the transform that prints item values to strings.
val item_to_bed_graph : unit ->
(Biocaml_wig.item,
(Biocaml_wig.bed_graph_value, [> Biocaml_wig.Error.to_bed_graph ])
Biocaml_internal_utils.Result.t)
Biocaml_transform.t
Create a transform which converts `variable_step_value _ and `fixed_step_value _ values to `bed_graph_value _ values, using the current state. The `bed_graph_value _ items stay untouched and `comment _ values are ignored.
end