package biotk

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

Module FeatureCounts.TsvSource

Sourcetype t = {
  1. id : string;
  2. chr : string;
  3. lo : int;
  4. hi : int;
  5. strand : string;
  6. length : int;
  7. count : int;
}
Sourceval count : t -> int
Sourceval length : t -> int
Sourceval strand : t -> string
Sourceval hi : t -> int
Sourceval lo : t -> int
Sourceval chr : t -> string
Sourceval id : t -> string
Sourcemodule Fields : sig ... end
include Csvfields.Csv.Csvable with type t := t
include Csvfields.Csv.Csvable_simple with type t := t
Sourceval is_csv_atom : bool

true if csvable will be represented as a column, and its label is the field name of a containing record.

Sourceval rev_csv_header' : string list -> _ -> _ -> string list

A Fields.fold friendly version of a function to collect the csv header of the csvable type. The output is the header in reverse order.

Sourceval rev_csv_header_spec' : Csvfields.Csv.Spec.t list -> _ -> _ -> Csvfields.Csv.Spec.t list
Sourceval t_of_row' : _ -> string list -> (unit -> t) * string list

t_of_row' _ row generates a Fields.make_creator friendly function that outputs a pair (creator, tail) such that creator () generates the type t with the first elements in row, and tail is the remaining set of elements from row that where not used in the creation of t.

Sourceval write_row_of_t' : is_first:bool -> is_last:bool -> writer:(string -> unit) -> _ -> _ -> t -> unit

row_of_t' has the same arguments as Helper.write. The ignored arguments are used to make it Fields.fold friendly.

Sourceval csv_header : string list

The list of strings creating the header of the csvable type.

Sourceval csv_header_spec : Csvfields.Csv.Spec.t list
Sourceval t_of_row : string list -> t

t_of_row row creates type t from the row.

Sourceval row_of_t : t -> string list

row_of_t t creates a row from csvable.

Sourceval csv_load : ?separator:char -> string -> t list

The following functions are wrappers around the corresponding functions in Csvlib.Csv.

Sourceval csv_load_in : ?separator:char -> Core.In_channel.t -> t list
Sourceval csv_save_fn : ?separator:char -> (string -> unit) -> t list -> unit
Sourceval csv_save_out : ?separator:char -> Core.Out_channel.t -> t list -> unit
Sourceval csv_save : ?separator:char -> string -> t list -> unit
Sourceval load : string -> t list
Sourceval loc : t -> GLoc.t
OCaml

Innovation. Community. Security.