segmenTier
algorithm.back-tracing step: collect clustered segments from the scoring matrix
S(i,c)
by back-tracing the position j=k
which delivered
the maximal score at position i
.
backtrace(S, K, multib, nextmax = FALSE, verb = TRUE)
matrix S, containing the local scores
matrix K, containing the position k used for score maximization
if multiple k produce the maximal score, take either the
shortest k ("max") or the longest k ("min"); if multib
is set to
"skip" the next unique k will be searched
proceed backwards while score is increasing before opening a new segment
print messages