Calculate the correct IUPAC code for a vector of nucleotides.
Usage
iupacCode(bases, ignore.gaps = FALSE)
validIupacCodes(bases)
iupacMat()
Arguments
bases
character vector containing valid nucleotides or IUPAC codes.
ignore.gaps
logical. Ignore gaps at a site when creating consensus.
If true, then bases with a gap are removed before consensus is calculated.
If false and a gap is present, then the result is a gap.
Value
iupacCode
a character representing the correct IUPAC code
bases.
validIupacCodes
a character vector of all valid IUPAC
codes for bases.