package biocaml
Install
Dune Dependency
Authors
Maintainers
Sources
md5=497e3f2f7128a6ca347d66848da38a3d
sha512=4a76ebbafda3bc944afaff40d69791dfe153a0638ef5d7e6e1bc962b7f991d9545cd0af2d7930b39f8b31dbf067d0603cfa03d9b7a49396ab1ae452df47fd1f3
doc/biocaml.unix/Biocaml_unix/Bpmap/index.html
Module Biocaml_unix.Bpmap
Affymetrix's BPMAP files. Only text format supported. Binary BPMAP files must first be converted to text using Affymetrix's probe exporter tool.
type probe = {
org_name : string;
(*name of organism on which probe is based
*)version : string;
(*genome build version on which probe is based
*)chr_name : string;
(*name of chromosome on which probe is based
*)start_pos : int;
(*start position of probe on given chromosome
*)sequence : Seq.t;
(*sequence of the perfect match probe
*)
}
type row = {
pmcoord : int * int;
(*x,y-coordinates of perfect match probe.
*)mmcoord : int * int;
(*x,y-coordinates of mismatch probe
*)probe : probe;
}
Type of information on one data row.
val num_probes : t -> int
Number of PM/MM probe pairs in given BPMAP. The number of total probes is twice this value.
I/O
val of_file : ?chr_map:(string -> string) -> string -> t
of_file file
parses file
. If given, chr_map
is applied to every chromosome name. Raise Bad
if there is a parse error.
val row_to_string : row -> string
String representation of row in same format as required by specification.
val to_file : string -> t -> unit
to_file file t
prints t
to file
in format required by specification.