Calculates the k corresponding to a limit relative to the distinct number of k-mers.

kmr_calc_k_limit(res, limit = 0.95)

Arguments

res

a dataframe

limit

numeric between 0 and 1

Value

list k and limit values

Examples

if (interactive()) { fa <- system.file("testdata/phix174.fasta", package = "kmerize") k <- as.integer(seq(5, 17, 2)) res <- kmr_response(fa, k) kmr_calc_k_limit(res) }