package biocaml
Install
Dune Dependency
Authors
Maintainers
Sources
md5=486aeb3e552dabae85839e2af30d6c52
sha512=4ed2df0b7cbd80bd6e29bd8fee9d2dacd9379ad0f4ff142bd8e16ade3f1507f6cc7cbe4c614943b8feb8fa4705935695cb458606b0da813dbf255b1e566a43cf
doc/biocaml.unix/Biocaml_unix/Pwm/index.html
Module Biocaml_unix.Pwm
Source
Position-weight matrix
This module can be used to create position-weight matrices (PWM) to describe a DNA motif. Such matrices can then be searched on a DNA sequence, given a threshold for alignment score.
Type to represent gap-free alignments. First dimension is the sequence position, second dimension is for the alphabet. Only DNA alphabet (A, C, G, T) is supported to rows should be of length exactly four.
Probability distribution over an alphabet
Uniform distribution over A, C, G, T
background_of_sequence seq pc
estimates the base frequency in seq
using pc
as pseudo-counts. Typical value for pc
is 0.1
.
Representation of a PWM
Builds a PWM from a count_matrix and a background
val tandem :
?orientation:[ `direct | `inverted | `everted ] ->
spacer:int ->
count_matrix ->
count_matrix ->
background ->
t
tandem orientation spacer cm1 cm2 bg
builds a PWM by constructing a composite motif: it builds mat1
the PWM from cm1
under background bg
(resp. mat2
from cm2
under bg
), then concatenates mat1
and mat2
with spacer
non scoring columns in between
scan mat seq tol
returns the list of positions (with corresponding scores) such that the alignment score of mat
is superior to tol
Identical to scan
but directly implemented in C