translate(seq, frame = 0, sens = "F", numcode = 1)
seq
.0
is used.F
for forward sense and R
for revers sense.translate
returns a vector of character containing the peptide sequence in the standard one-letter IUPAC code. Termination (STOP) codons are translated as the character '*'.numcode
.
To have an overview of the seqinR's functionnality, please consult this vignette: Charif, D., Lobry, J.R. (2005) SeqinR: a contributed package to the R project for statistical computing devoted to biological sequences retrieval and analysis. Springer Verlag, Biological and Medical Physics/Biomedical Series, in preparation.
SEQINR.UTIL
a=read.fasta(File=system.file("sequences/malM.fasta",package ="seqinr"))
translate(a[[1]])
translate(a[[1]],3,"R",6)
Run the code above in your browser using DataCamp Workspace