AAToInt: AA, DNA, RNA character set

Description Usage Arguments Details Value Author(s) Examples

View source: R/ScoringMatrix.R

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  

ge11232002/TKF documentation built on May 17, 2019, 12:13 a.m.