package biocaml

  1. Overview
  2. Docs
The OCaml Bioinformatics Library

Install

Dune Dependency

Authors

Maintainers

Sources

v0.11.0.tar.gz
md5=486aeb3e552dabae85839e2af30d6c52
sha512=4ed2df0b7cbd80bd6e29bd8fee9d2dacd9379ad0f4ff142bd8e16ade3f1507f6cc7cbe4c614943b8feb8fa4705935695cb458606b0da813dbf255b1e566a43cf

doc/biocaml.unix/Biocaml_unix/Bar/index.html

Module Biocaml_unix.BarSource

Affymetrix's BAR files. Their Tiling Analysis Software (TAS) produces BAR files in binary format but this module supports only the text format generated by selecting the "Export probe analysis as TXT" option.

Sourcetype t

Type of a BAR file, which can be thought of as a header plus set of sections.

Sourceexception Bad of string
Sourcetype section = private {
  1. sec_num : int;
    (*

    order in which section appears in file, first section is numbered 1

    *)
  2. sec_name : string;
    (*

    chromosome name relative to which coordinates are given

    *)
  3. sec_data : (int * float) list;
    (*

    pairs of coordinate-score data

    *)
}
Sourceval of_file : string -> t

Parse file. Raise Bad if there are parse errors.

Sourceval to_list : t -> (string * int * float) list

Return the data as a list of triplets (chr,pos,v) representing the chromosome name, probe position, and value. Will be returned in ascending order by (chr,pos).

Sourceval section : t -> string -> section

section t name returns the section named name. Raise Failure if no such section.

Sourceval sectioni : t -> int -> section

sectioni t i returns the i'th section. Raise Failure if no such section.

Sourceval sections : t -> section list

Return all sections in t.

Sourceval num_sections : t -> int

Returns the number of sections in t

Header Information
Sourceval data_type : t -> string

Return the type of data, either "signal" or "p-value".

Sourceval scale : t -> string

Return scale data is reported in, e.g. linear, log2.

Sourceval genomic_map : t -> string

File path of bpmap file used to generate scores.

Sourceval alg_name : t -> string

Name of algorithm used to generate scores.

Sourceval alg_version : t -> string

Version number of algorithm used.

Sourceval coord_convention : t -> string

Probe coordinate convention used.

OCaml

Innovation. Community. Security.