Skip to contents

A step of the mafft_native implementation. Called by find_homologous_segments. See the file header for the source the module follows.

Usage

mafft_peaks(lags, c, n_peaks)

Arguments

lags

A vector; indexed elementwise.

c

Numeric; passed to order.

n_peaks

Coerced to integer by the body, with as.integer.

Value

The value of [.

Examples

mafft_peaks(lags = -3:3, c = c(0.1, 0.5, 0.2, 0.9, 0.3, 0.8, 0.0), n_peaks = 2)
#> [1] 0 2