Learn R Programming

TKF (version 0.0.8)

AAToInt: AA, DNA, RNA character set

Description

Some AA, DNA, RNA character set defined in this package and functions to convert them into integers.

Usage

AAToInt(AA)

Arguments

AA
A vector of character.

Value

A integer vector.

Details

Each AA is converted to the position of that AA in AACharacterSet.

Examples

Run this code
  library(seqinr)
  fasta <- read.fasta(file.path(system.file("extdata", package="TKF"),
                      "pair1.fasta"),
                      seqtype="AA", set.attributes=FALSE)
  AAToInt(fasta[[1]])
  
  AACharacterSet  

Run the code above in your browser using DataLab