Learn R Programming

peptider (version 0.2.2)

genNeighbors: Calculate neighborhood distribution

Description

Calculate distribution of neighbors under library scheme lib for peptide sequences of length k.

Usage

genNeighbors(sch, k)

Arguments

sch
library scheme
k
length of the peptide sequences

Value

dataset of peptide sequences: AA are amino acid sequences, c0 are codons for self representation, cr is the ratio of #neighbors in first degree neighborhood (not counting self representations) and #codons in self representation N1 is the number of neighbors in codon representation (including self representation)

Examples

Run this code
genNeighbors(scheme("NNK"), 2)
genNeighbors(scheme("2020"), 2)

Run the code above in your browser using DataLab