Module Biocaml_fasta.Random (.ml)

Random Generation


module Random: 
sig
type specification = [ `non_sequence_probability of float | `tags of Biocaml_fasta.Tags.t ] 
The specification guiding the random generation of 'a raw_item values is a list of specification values.
  • `non_sequence_probability f means that the output will not be a `partial_sequence _ item with probability f.
  • `tags t specifies which Tags.t should be respected.

val specification_of_string : string ->
(specification list,
[> `fasta of [> `parse_specification of exn ] ])
Core.Std.Result.t
Parse a specification from a string. Right now, the DSL is based on S-Expressions.
val get_tags : [> specification ] list -> Biocaml_fasta.Tags.t option
Get the first Tags.t in the specification, if any.
val unit_to_random_char_seq_raw_item : [> specification ] list ->
((unit, Biocaml_fasta.char_seq Biocaml_fasta.raw_item) Biocaml_transform.t,
[> `inconsistent_tags of [> `int_sequence ] ])
Core.Result.t
Create a transformation that generates random char_seq raw_item values according to the specification.
end