Learn R Programming

peptider (version 0.2.2)

efficiency: Relative efficiency of a library

Description

Relative efficiency of a peptide library, defined as the ratio of expected diversity of a peptide library relative to its overall number of oligonucleotides

Usage

efficiency(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, if null, libscheme will be used to create it
variance
return the variance instead of the expected value

Value

relative efficiency index between 0 and 1

Examples

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

Run the code above in your browser using DataLab