Learn R Programming

peptider (version 0.2.2)

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

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

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

Run this code
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.

Run the code above in your browser using DataLab