Learn R Programming

alakazam (version 1.2.1)

isValidAASeq: Validate amino acid sequences

Description

isValidAASeq checks that a set of sequences are valid non-ambiguous amino acid sequences. A sequence is considered valid if it contains only characters in the the non-ambiguous IUPAC character set or any characters in c("X", ".", "-", "*").

Usage

isValidAASeq(seq)

Value

A logical vector with TRUE for each valid amino acid sequences and FALSE for each invalid sequence.

Arguments

seq

character vector of sequences to check.

See Also

See ABBREV_AA for the set of non-ambiguous amino acid characters. See IUPAC_AA for the full set of ambiguous amino acid characters.

Examples

Run this code
seq <- c("CARDRSTPWRRGIASTTVRTSW", "XXTQMYVR--XX", "CARJ", "10") 
isValidAASeq(seq)

Run the code above in your browser using DataLab