Translates DNA or RNA sequences with an NCBI genetic code. Codons that
contain ambiguous bases become X and stop codons become *.
Usage
bio_translate(
.data,
seq = NULL,
frame = 1,
code = "standard",
to_stop = FALSE,
start_as_met = FALSE,
.into = "translated"
)Arguments
- .data
A data frame, tibble or
bio_seq_tbl().- seq
<
tidy-select> The sequence column. Can be omitted for a<bio_seq_tbl>.- frame
Reading frame:
1,2or3on the given strand, or-1,-2or-3on the reverse complement.- code
Genetic code:
"standard"(NCBI table 1),"bacterial"(table 11),"vertebrate_mito"(table 2) or"yeast_mito"(table 3).- to_stop
If
TRUE, stop translation at the first stop codon and drop it.- start_as_met
If
TRUE, translate an alternative start codon in the first position as methionine, as happens in vivo.- .into
Name of the new protein column.
References
NCBI. The Genetic Codes. https://www.ncbi.nlm.nih.gov/Taxonomy/Utils/wprintgc.cgi