Calculate scoring matrix from probability matrices for matching and non-matching sets of neurons
calc_score_matrix(matchmat, randmat, logbase = 2, epsilon = 1e-06)
A matrix with with class=c("scoringmatrix", "table")
, with
columns as specified by dotprodbreaks
and rows as specified by
distbreaks
, containing scores for neuron segments with the given
distance and dot product.
a probability matrix given by considering 'matching' neurons.
a probability matrix given by considering 'non-matching' or 'random' neurons.
the base to which the logarithm should be taken to produce the final scores.
a pseudocount to prevent division by zero when constructing the log odds ratio in the probability matrix.