package biocaml
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=fae219e66db06f81f3fd7d9e44717ccf2d6d85701adb12004ab4ae6d3359dd2d
sha512=f6abd60dac2e02777be81ce3b5acdc0db23b3fa06731f5b2d0b32e6ecc9305fe64f407bbd95a3a9488b14d0a7ac7c41c73a7e18c329a8f18febfc8fd50eccbc6
doc/biocaml.ez/Biocaml_ez/Phred_score/index.html
Module Biocaml_ez.Phred_score
Source
include module type of struct include Biocaml_unix.Phred_score end
to_probablity x
converts x
to a probablity score. Note this is not the inverse of of_probability
due to the rounding done by the latter.
of_solexa_score x
converts Solexa score x
to a PHRED score.
The conversion produces a float, and it is unclear what convention is used to convert the resulting float value to an integer. As in of_probability
, the optional f
parameter is provided to dictate this.
to_solexa_score t
converts PHRED score t
to a Solexa score.
The conversion produces a float, and it is unclear what convention is used to convert the resulting float value to an integer. As in of_probability
, the optional f
parameter is provided to dictate this.
The min and max PHRED scores when encoded as ASCII characters. Since PHRED scores are virtually always ASCII encoded, you are unlikely to see values outside this range. However, this module allows creating values outside this range, e.g. of_probability 1e-13
exceeds max_as_char
, and of_probability 0.9
is smaller than min_as_char
(for either offset).