A codon is a sequence of three DNA/RNA nucleotides that corresponds to a specific aminoacid or stop signal during protein synthesis. Naturally, a codon encodes just for one aminoacid. Degenerate nucleotides represent that a certain position can have multiple alternatives from the canonical bases (ATCG). A degenerate codon is a sequence of three degenerate nucleotides which, as a result, encodes for (one or) more than one amino acid.
This program calculates the minimun set of degenerate codons that would encode a given set of amino acids with equal probabilities.
- Download the repository or clone it into preffered location
git clone https://github.com/beamimc/degenerate_codon_designer.git
- python version >= 3.8
- libraries needed:
pandas==1.3.3 plotly==4.14.3 streamlit==1.3.0
- install each by pip install
- install all by:
pip install -r requirements.txt
requirements.txt
to install all dependenciesrun_dcg.py
is for running program on python enviroment / terminalgui.py
is for running program on streamlit (https://streamlit.io/)create_deg_codons_DB.py
is script to generate thedatasets/
folder
global_variables.py
declares global variables of the moduledcg.py
contains degenerateCodon function that calculates the minimum set of degenerate codons given an AAset
- contains
deg_codons_DB_clean.csv
anddeg_codons_DB.csv
used during the program, created by create_deg_codons_DB.py
images used for the GUI version
chart.png
source is: https://che.gg/3Hhut5Vlogo.svg
was made by me
config.toml
for setting the main theme for the GUI version
A GUI version of this program was developed, creating a web app using Streamlit (https://streamlit.io/), an open-source Python library. A CLI version was also implemented, so as to run the program on the terminal or python interpreter.
- On terminal, move into the folder of the repository downloaded/cloned
- Type command
streamlit run gui.py
- First time running streamlit a message like this will show. Press enter to skip.
- A message like the following should show up
- A new tab in your default browser will automatically open with the app. You can also open it by copying and pasting the Local URL on your browser. Please, note that Safari is not completely compatible. Preferably use Chrome or Firefox.
- Main page will show, where aminoacids sets can be selected from a list, or from an custom user input (Custom option)
- Click
Design
button to run the program and obtain the set of optimized degenerated codons - Results will show up, along with some extra information
- In case any of the provided options were selected (i.e all/KRED/polar/non polar/aromatic), the result will also come with a brief real-work application example
-
On terminal, move into the folder of the repository downloaded/cloned
-
Type command
python run_dcg.py
-
Program will start and ask AAset to the user
- After input the AAset, program will run and show the results