decode(self,
dna,
thresholdBase,
thresholdIncrement)
| source code
|
Decode a string of dna bases to a matrix and a threshold. The matrix
is decoded by taking words of length 5 from the encoding sequence. If the
first four characters are all identical, decoding stops. Otherwise, they
are mapped to integer values in {0, 1, 2, 3} and appended to the matrix
as a further column. The 5th character is mapped to an integer, which is
and added to the threshold. The threshold is further controlled by the
threshold offset, which is also added to the threshold for each position
in the matrix, thus allowing some control over the binder's
specificity.
|