View source: R/dna_to_protein.R
dna_to_protein | R Documentation |
This function takes a DNA sequence as input and translates it in all six reading frames.
dna_to_protein(sequence)
sequence |
A character string representing a DNA sequence. |
A list of character strings representing the translated protein sequences in all six frames.
sequence <- "ATCGAGCTAGCTAGCTAGCTAGCT"
dna_to_protein(sequence)
# Returns a list containing the translated protein sequences in all six frames:
# $`Frame F1`
# [1] "IELAS"
#
# $`Frame F2`
# [1] "SS"
#
# $`Frame F3`
# [1] "RAS"
#
# $`Frame R1`
# [1] "S"
#
# $`Frame R2`
# [1] "AS"
#
# $`Frame R3`
# [1] "LAS"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.