package biocaml

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

Module Biocaml_unix.GffSource

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

Sourcetype 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.

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

The items being output by the parser.

Error Types

Sourcemodule Error : sig ... end

The errors of the Gff module.

Tags.t

Sourcemodule Tags : sig ... end

In_channel.t Functions

Sourceexception Error of Error.t

The exception raised by the *_exn functions.

Sourceval in_channel_to_item_stream : ?buffer_size:int -> ?filename:string -> ?tags:Tags.t -> Core.In_channel.t -> (item, [> Error.parsing ]) Core.result Stream.t

Parse an input-channel into item values.

Sourceval in_channel_to_item_stream_exn : ?buffer_size:int -> ?tags:Tags.t -> Core.In_channel.t -> item Stream.t

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

To_string Function

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

Convert an item to a string.

Tfxm.t

Sourcemodule Transform : sig ... end

Lower-level stream transformations.

S-Expressions

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

Innovation. Community. Security.