getNeighbors: Find all neighbors of degree one for a set of peptide...

Description Usage Arguments Value Examples

View source: R/peptider.r

Description

first degree neighbors - a neighbor of a peptide is defined as a peptide sequence that differs in at most one amino acid from a given sequence. Additionally, we can restrict neighbors to regard only those sequences that have a certain minimal BLOSUM loading.

Usage

1
getNeighbors(x, blosum = 1)

Arguments

x

(vector) of character strings of peptide sequences.

blosum

minimal BLOSUM loading, defaults to 1 for positive loadings only

Value

list of neighbor sequences

Examples

1
2
3
4
5
getNeighbors("APE")
getNeighbors(c("HI", "APE"))
getNeighbors(c("HI", "EARNEST", "APE"), blosum=3)
## degree 2 neighbors:
unique(unlist(getNeighbors(getNeighbors("APE"))))

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