multimodality: Multimodality Score

Description Usage Arguments Details Value Author(s) References Examples

View source: R/bimodality.R

Description

Multimodality score based on bootstrapped potential analysis.

Usage

1
2
3
4
5
6
7
8
multimodality(
  x,
  peak.threshold = 1,
  bw.adjust = 1,
  bs.iter = 100,
  min.density = 1,
  verbose = TRUE
)

Arguments

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

Details

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.

Value

A list with following elements:

Author(s)

Leo Lahti leo.lahti@iki.fi

References

Examples

1
2
#data(peerj32)
#s <- multimodality(t(peerj32$microbes[, c('Akkermansia', 'Dialister')]))

microbiome documentation built on Nov. 8, 2020, 5:08 p.m.