package biocaml

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
include module type of struct include Biocaml_unix.Fastq end
type item = Biocaml_unix.Fastq.item = {
  1. name : string;
  2. sequence : string;
  3. comment : string;
  4. qualities : string;
}
val sexp_of_item : item -> Ppx_sexp_conv_lib.Sexp.t
val item_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> item
val split_name : string -> string * string option

Split a name string into a sequence identifier and an optional description. It is assumed that the given string is from an item's name field, i.e. that it doesn't contain a leading @ char.

include sig ... end
module Illumina = Biocaml_unix.Fastq.Illumina

Low-level Printing

val item_to_string : item -> string

This function converts item values to strings that can be dumped to a file, i.e. they contain full-lines, including all end-of-line characters.

Low-level Parsing

val sequence_of_line : ?pos:Biocaml_unix.Pos.t -> Biocaml_unix.Line.t -> string
val comment_of_line : ?pos:Biocaml_unix.Pos.t -> Biocaml_unix.Line.t -> string Core_kernel.Or_error.t
val qualities_of_line : ?pos:Biocaml_unix.Pos.t -> ?sequence:string -> Biocaml_unix.Line.t -> string Core_kernel.Or_error.t

qualities sequence line parses given qualities line in the context of a previously parsed sequence. The sequence is needed to assure the correct number of quality scores are provided. If not provided, this check is omitted.

include sig ... end
val write : Future_lwt.Writer.t -> Biocaml_unix__Fastq.item Future_lwt.Pipe.Reader.t -> unit Future_lwt.Deferred.t
val write_file : ?perm:int -> ?append:bool -> string -> Biocaml_unix__Fastq.item Future_lwt.Pipe.Reader.t -> unit Future_lwt.Deferred.t