checkProt: Check if the protein sequence's amino acid types are the 20...

Description Usage Arguments Details Value Author(s) Examples

View source: R/706-checkProt.R

Description

Check if the protein sequence's amino acid types are the 20 default types

Usage

1

Arguments

x

A character vector, as the input protein sequence.

Details

This function checks if the protein sequence's amino acid types are the 20 default types.

Value

Logical. TRUE if all of the amino acid types of the sequence are within the 20 default types.

Author(s)

Min-feng Zhu <wind2zhu@163.com>, Nan Xiao <http://r2s.name>

Examples

1
2
3
x = readFASTA(system.file('protseq/P00750.fasta', package = 'BioMedR'))[[1]]
checkProt(x)  # TRUE
checkProt(paste(x, 'Z', sep = ''))  # FALSE

BioMedR documentation built on Nov. 17, 2017, 10:08 a.m.