Description Usage Arguments Details Value Examples
Helper function that calculates percentiles of scores for batch-correction method 'pn' (percentile normalization). R-implementation of Claire Duvallet's 'percentileofscore()' for python.
1 |
cnt.vec |
A vector of counts that acts as reference for score calculation. |
cnt |
A numeric value to calculate percentile-score for. |
type |
One of 'rank', 'weak', 'strict' or 'mean' to determine how the score is calculated. |
Calculates the number of values that bigger than reference (left) and the number of values that are smaller than the reference (right). Percentiles of scores are given in the interval I:[0,100]. Depending on type of calculation, the score will be computed as follows:
rank = (right + left + ifelse(right > left, 1, 0)) * 50/n
weak = right / n*100
strict = left / n*100
mean = (right + left) * 50/n)
A score for given count in relation to reference counts.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.