Description Usage Arguments Value Examples
C++ implementation of Local Consistency Score algorithm.
1 | calculate_local_consistency(x, numPermutations, minPermutations, e)
|
x |
numeric vector that contains values for shuffling |
numPermutations |
maximum number of permutations performed in Monte Carlo test for consistency score |
minPermutations |
minimum number of permutations performed in Monte Carlo test for consistency score |
e |
stop criterion for consistency score Monte Carlo test:
aborting permutation
process after observing |
list with score
, p_value
, and n
components,
where score
is the raw local consistency score (usually not used),
p_value
is the associated p-value for that score, obtained by
Monte Carlo testing, and n
is the number of permutations performed
in the Monte Carlo test (the higher, the more significant)
1 2 3 4 5 6 7 8 9 | poor_enrichment_spectrum <- c(0.1, 0.5, 0.6, 0.4,
0.7, 0.6, 1.2, 1.1, 1.8, 1.6)
local_consistency <- calculate_local_consistency(poor_enrichment_spectrum,
1000000, 1000, 5)
enrichment_spectrum <- c(0.1, 0.3, 0.6, 0.7, 0.8,
0.9, 1.2, 1.4, 1.6, 1.4)
local_consistency <- calculate_local_consistency(enrichment_spectrum,
1000000, 1000, 5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.