Learn R Programming

protr (version 1.7-4)

protcheck: Protein sequence amino acid type sanity check

Description

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

Usage

protcheck(x)

Value

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

Arguments

x

A character vector, as the input protein sequence.

Author

Nan Xiao <https://nanx.me>

Examples

Run this code
x <- readFASTA(system.file("protseq/P00750.fasta", package = "protr"))[[1]]
protcheck(x) # TRUE
protcheck(paste(x, "Z", sep = "")) # FALSE

Run the code above in your browser using DataLab