This function takes a RNA sequence as input and translates it in all six reading frames.
Examples
sequence <- "AUCGAGCUAGCUAGCUAGCUAGCU"
rna_to_protein(sequence)
#> $`Frame F1`
#> [1] "IELAS"
#>
#> $`Frame F2`
#> [1] "SS"
#>
#> $`Frame F3`
#> [1] "RAS"
#>
#> $`Frame R1`
#> [1] "S"
#>
#> $`Frame R2`
#> [1] "AS"
#>
#> $`Frame R3`
#> [1] "LAS"
#>
# 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"