protcheck: Protein sequence amino acid type sanity check

Description Usage Arguments Value Author(s) Examples

View source: R/misc-03-protcheck.R

Description

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

Usage

1

Arguments

x

A character vector, as the input protein sequence.

Value

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

Author(s)

Nan Xiao <https://nanx.me>

Examples

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

protr documentation built on Nov. 18, 2017, 9:03 a.m.