pep_check: Check if a vector of peptides is valid.

Description Usage Arguments Value Examples

Description

According to criteria: i. Is a vector with one or more elements. ii. Is a character vector. iii. All elements in vector have the same number of characters. iv. Elements only contain allowed amino acid residues 'ARNDCQEGHILKMFPSTWYVX-'.

Usage

1
pep_check(pep)

Arguments

pep

A vector of peptides to be checked

Value

TRUE if the vector passed the check, otherwise stop() is called

Examples

1
2
3
pep_check(c("RQGQDHPTM","RGQKTTDNA","NILYEYWDY"))
pep_check(c("RQGQDHPTM","RGQKTTDNA","NILYEYWDYX"))
pep_check(c("RQGQDHPTM","RGQKTTDNA","NILYEYWDB"))

leonjessen/PepTools documentation built on May 29, 2019, 3:40 a.m.