| translate {bioseq.fasta} |
R Documentation |
Do translation of the nt sequence to protein sequence
Description
Usage
translate(nt,
table = BacterialArchaealAndPlantPlastidCode,
bypassStop = TRUE,
checkNt = TRUE);
Arguments
nt
The given fasta collection, which can be a single FastaSeq object, a FastaFile object, a collection of the FastaSeq object, or a character vector of the raw nucleotide sequence data.
table
The genetic code for translation table. [as GeneticCodes]
bypassStop
Try ignores of the stop codon. [as boolean]
checkNt
check the input nucleotide sequence data is a valid nucleotide sequence? if this parameter is TRUE and the input sequence data contains the invalid nucleotide letters, then an error will be thrown. [as boolean]
env
the R# runtime environment object. [as Environment]
Details
when the bypassStop parameter is TRUE and there are some invalid gene sequence that contains the stop codon symbol in the translated protein sequence, a warning message will be pushed into the R# environment message buffer.
Authors
seqtoolkit
Value
a protein FastaSeq object if the input is a single nucleotide sequence, or a FastaFile protein sequence collection if the input is a collection of the nucleotide sequence data;
this function returns a R# error message object if the input sequence data can not be cast to a nucleotide fasta sequence collection.
clr value class
Examples
[Package
bioseq.fasta version 1.0.0.0
Index]