Bioinformatics
CS300
Crash course:
Transcription and Translation Running Python in Docker or Online
Bioinformatics CS300 Crash course: Transcription and Translation - - PowerPoint PPT Presentation
Bioinformatics CS300 Crash course: Transcription and Translation Running Python in Docker or Online Fall 2019 Oliver BONHAM-CARTER Gene Expression Transcriptjon and Translatjon Transcriptjon copy a set of ingredients/instructions from a
Transcription and Translation Running Python in Docker or Online
Transcriptjon
copy a set of ingredients/instructions from a cookbook to create a recipe
Translatjon
use the recipe to create a dish
https://dnalc.cshl.edu/view/16933-3D-Animation-of-DNA-to-RNA-to-Protein.html
– Human genome ~25,000 genes (just 1.5% of genome)
– DNA -> RNA – same language (nucleotjdes)
T ransfer RNA (tRNA) Ribosomal RNA (rRNA) Messenger RNA (mRNA)
thymine (no Ts in RNA)
stranded (one backbone, no basepairs)
difgerent sugar)
whose product is needed.
strand.
relatjve to the gene being transcribed
Antjsense strand Sense strand
– Human genome ~25,000 genes (just 1.5% of genome)
– DNA -> RNA – same language (nucleotjdes)
T ransfer RNA (tRNA) Ribosomal RNA (rRNA) Messenger RNA (mRNA)
https://www.dnalc.org/resources/3d/12-transcription-basic.html
(mRNA) that directs the synthesis of a protein.
Introns do not contain the message and are removed from the RNA afuer transcriptjon but prior to translatjon. During the process of RNA splicing, introns are removed and exons joined to form a contjguous coding sequence.
Non-coding regions Coding regions
informatjon coding for a protein or peptjde sequence.
The Genetjc Code: RNA into Protein
many transcripts is “AUG”, which codes for methionine
and UGA indicate the end of the transcript
Antjsense strand Sense strand
– htups://www.youtube.com/watch?v=8dsTvBaUMvw
mins)
– htups://www.youtube.com/watch?v=h5mJbP23Buo
mins)
– htups://www.youtube.com/watch?v=2BwWavExcFI
Of the many recipes in the cookbook…
… Only transcribe and translate 4th of July recipes in July … Only transcribe and translate the Thanksgiving turkey recipe in November
Mac and Windows ToolBox: find and run the “Docker QuickStart Terminal” Note: See file, quickStartCommands.md, for these commands Note: The Docker ToolBox commands to initiate server
Windows Quickstart Command: "C:\Program Files\Git\bin\bash.exe" --login -i "C:\Program Files\ Docker Toolbox\start.sh" MacOS Quickstart Command: bash --login '/Applications/Docker/Docker Quickstart Terminal.app/ Contents/Resources/Scripts/start.sh'
If your server was properly initialized then, you should see this cute whale.
– docker run -t python3 – Or, build the container and run Python3 there
– Mount a drive and then use bash to run
Python3
type=bind,source=$PWD,target=/home/py_play py_play
to the environmental variables (check the path option!)
#Calculating values 3 / 4 2 * 6 3.1415 – 2.718 x = 1 y = 2 print(x+y) result = x + y print(“The result is :”,result)
# Integers, counting numbers num_int = 1 # Floats, decimals num_float = 3.1415 # Strings s_str = ” Hello World” # Combining variables in print statements x_int = 1 print(" The integer variable is :", x_int) num_float = 3.14 print(" The float variable is :", num_float) s_str =("Hello World'') print(" The integer is equal to", s_str)
3 + 4 # Addition 3 − 4 # Subtraction 3 4 # Multiplication
# Modulus; Returns the remainder from the division 3 4 ∗ ∗5 ∗ ∗5 3%4 # Powers; raise three to the power of four = 3 3 3 3 = 3^4 = pow(3,4)
# Remember each char of a string has own position s_str = "ABC" s_str[0] = 'A' s_str[1] = 'B' s_str[2] = 'C' s_str[200] = ?? # Another way to iterate # through a string using its length for i_int in range(len(s_str)): print(s_str[i_int])
# Getting input from a user resp_str = input(“Enter your name :”) print(" Hello",resp_str,"!") # Determine number of chars in a string lengthOfName_int = len(resp_str) # Find a subset-string in the string resp_str.find("M") resp_str.find("A") resp_str.find("R") resp_str.find("K") resp_str.find("ARK")
Find char occurrence in a string resp_str = “Hello!!” resp_str.count("H") resp_str.count("l") Find number of specific triples in string. resp_str = “Hellollollo!!” resp_str.count("llo") resp_str.find("llo")
Find char occurrence in a string resp_str = “Hello!!” resp_str.count("H") resp_str.count("l") Find number of specific triples in string. resp_str = “Hellollollo!!” resp_str.count("llo")
print("Welcome to the program!") prmpt_str = " Please enter your name :" # place the string above into input statement name_str = input(prmpt_str) print(" Your name is :",name_str) print(" And is <<",len(name_str),">> chars long!") # print the chars on lines print(" What are the characters in the string? ") for i in range(len(name_str)): # note the tabs for this block! # we iterate through the positions in string print(" + char :",name_str[i]) # findout how many a's are in the name numChar_int = name_str.count("a") print(" The number of a's in your name :",numChar_int)
For this code, see file, pythonDemo.py, in your sandbox.
counts the occurrences of:
– A’s – T’s – G’s – C’s – “AT”, “TA” – “GC” and “CG”
program
genome,
– https://www.ncbi.nlm.nih.gov/nuccore/NC_030915.1?repor
t=fasta
TA’s, GC’s and CG’s?