Learn R Programming

strataG (version 2.0.2)

validIupacCodes: Valid IUPAC Codes

Description

Get all possible valid IUPAC ambiguity codes for a set of nucleotide bases and ambiguity codes.

Usage

validIupacCodes(bases)

Arguments

bases

character vector of nucleotides or IUPAC codes to be checked.

Value

character vector of valid IUPAC codes for bases.

Examples

Run this code
# NOT RUN {
validIupacCodes(c("c", "t", "c", "c"))

validIupacCodes(c("c", "y", "c", "c"))

validIupacCodes(c("a", "g", "t", "a"))

# }

Run the code above in your browser using DataLab