coverage: Coverage as expected number of peptides given all possible...

Description Usage Arguments Value Examples

View source: R/peptider.r

Description

Coverage of library of size N given random sampling from the pool of all possible peptides according to probabilities determined according to the library scheme.

Usage

1
coverage(k, libscheme, N, lib = NULL, variance = FALSE)

Arguments

k

length of peptide sequences

libscheme

Name (character vector) or definition (data frame) of scheme

N

size of the library

lib

library scheme

variance

return the variance instead of the expected value

Value

coverage index between 0 and 1

Examples

1
2
3
coverage(2, "NNN", 10^3)
coverage(2, "NNK", 10^3)
coverage(2, "2020", 10^3) ## 20/20 coverage is not 1 because of random sampling.

Example output

[1] 0.7773061
[1] 0.8107846
[1] 0.917915

peptider documentation built on May 2, 2019, 2:43 a.m.