AA, DNA, RNA character set

Share:

Description

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

Usage

1
AAToInt(AA)

Arguments

AA

A vector of character.

Details

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

Value

A integer vector.

Author(s)

Ge Tan

Examples

1
2
3
4
5
6
7
  library(seqinr)
  fasta <- read.fasta(file.path(system.file("extdata", package="TKF"),
                      "pair1.fasta"),
                      seqtype="AA", set.attributes=FALSE)
  AAToInt(fasta[[1]])
  
  AACharacterSet