package biocaml

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

GFF files.

Versions 2 and 3 are supported. The only difference is the delimiter used for tag-value pairs in the attribute list: 3 uses an equal sign, and 2 uses a space. Version 3 also has additional requirements, e.g. the feature must be a sequence ontology term, but these are not checked.

More information:

GFF Item Types

type record = {
  1. seqname : string;
  2. source : string option;
  3. feature : string option;
  4. pos : int * int;
  5. score : float option;
  6. strand : [ `plus | `minus | `not_applicable | `unknown ];
  7. phase : int option;
  8. attributes : (string * string list) list;
}

The type of the GFF records/rows.

type item = [
  1. | `comment of string
  2. | `record of record
]

The items being output by the parser.

Error Types

module Error : sig ... end

The errors of the Gff module.

Tags.t

module Tags : sig ... end

In_channel.t Functions

exception Error of Error.t

The exception raised by the *_exn functions.

val in_channel_to_item_stream : ?buffer_size:int -> ?filename:string -> ?tags:Tags.t -> Pervasives.in_channel -> (item, [> Error.parsing ]) Pervasives.result Stream.t

Parse an input-channel into item values.

val in_channel_to_item_stream_exn : ?buffer_size:int -> ?tags:Tags.t -> Pervasives.in_channel -> item Stream.t

Like in_channel_to_item_stream but use exceptions for errors (raised within Stream.next).

To_string Function

val item_to_string : ?tags:Tags.t -> item -> string

Convert an item to a string.

Tfxm.t

module Transform : sig ... end

Lower-level stream transformations.

S-Expressions

val record_of_sexp : Sexplib.Sexp.t -> record
val sexp_of_record : record -> Sexplib.Sexp.t
val item_of_sexp : Sexplib.Sexp.t -> item
val sexp_of_item : item -> Sexplib.Sexp.t
OCaml

Innovation. Community. Security.