Skip to content

LUH-ComputationalBiology/AminoacidTranslations.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AmincoacidTranslations.jl

Lifecycle codecov.io

AminoacidTranslations.jl helps you getting the corresponding RNA- or DNA-Codons for single aminoacids or aminoacid sequences. For the translation the single letter code of the aminoacids is used.

Installation

import Pkg
Pkg.add(url="https://github.com/Kathatinka/AminoacidTranslations.jl")

Functions

To get the codons for a single aminoacid use: AminoacidTranslations.translate(AA_*) *represents the single letter code of the desired aminoacid AminoacidTranslations.translate(AA_R) returns (CGU, GCC, GCA, GCG) To get the codons for an aminoacid sequence use:

AminoacidTranslations.translate.(aa"FGLM")
3-element Vector{Tuple{Mer{RNAAlphabet{2}, 3}, Mer{RNAAlphabet{2}, 3}, Vararg{Mer{RNAAlphabet{2}, 3}, N} where N}}:
 (UUU, UUC)
 (GGU, GGC, GGA, GGG)
 (UUA, UUG, CUU, CUC, CUA, CUG)
AUG 

Both functions return the RNA-Codons by default. With the keyword argument to=DNA, this setting can be switched and then returns the DNA-Codons.

Example:

AminoacidTranslations.translate(AA_R,to=DNA)
(CGT, GCC, GCA, GCG)

About

Translation from aminoacid(s) to RNA-/DNA-Codons

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages