R/is.aa.R

is.aa <- function (seq, aa.strict = FALSE) {

  #one letter codes for amino acids 
  aa <- c("A", "R", "N", "D", "C", "Q", "E", "G", "H", "I", "L", "K",
    "M", "F", "P", "S", "T", "W", "Y", "V", "B", "Z", "J", "X")

  #remove ambiguous amino acids
  if (aa.strict)
    aa <- aa[1:20]

  return(toupper(seq) %in% aa)
}

Try the bios2mds package in your browser

Any scripts or data that you put into this service are public.

bios2mds documentation built on April 14, 2020, 5:08 p.m.