Description Usage Arguments Details Value Author(s) References Examples
Multimodality score based on bootstrapped potential analysis.
1 2 3 4 5 6 7 8 | multimodality(
x,
peak.threshold = 1,
bw.adjust = 1,
bs.iter = 100,
min.density = 1,
verbose = TRUE
)
|
x |
A vector, or data matrix (variables x samples) |
peak.threshold |
Mode detection threshold |
bw.adjust |
Bandwidth adjustment |
bs.iter |
Bootstrap iterations |
min.density |
minimum accepted density for a maximum; as a multiple of kernel height |
verbose |
Verbose |
Repeats potential analysis (Livina et al. 2010) multiple times with bootstrap sampling for each row of the input data (as in Lahti et al. 2014) and returns the specified results.
A list with following elements:
scoreFraction of bootstrap samples with multiple observed modes
nmodesThe most frequently observed number of modes in bootstrap
resultsFull results of potential_analysis for each row of the input matrix.
Leo Lahti leo.lahti@iki.fi
Livina et al. (2010). Potential analysis reveals changing number of climate states during the last 60 kyr. Climate of the Past, 6, 77-82.
Lahti et al. (2014). Tipping elements of the human intestinal ecosystem. Nature Communications 5:4344.
1 2 | #data(peerj32)
#s <- multimodality(t(peerj32$microbes[, c('Akkermansia', 'Dialister')]))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.