Muhammad Bilal Department of Biological Sciences, Oakland University, Rochester MI
hey everyone! this is the complete workshop tutorial notebook.
everything is in one place — no jumping between files. open the notebook, start from the top, and work through it at your own pace.
| section | what you learn |
|---|---|
| Session 1 | variables, data types, strings, lists, loops, functions |
| Session 2 | dictionaries, reading FASTA files, reading/writing CSV |
| Session 3 | pandas for data analysis, making publication-ready plots |
| Mini Project | build a complete sequence analyser from scratch |
| Error Reference | common errors and how to fix them |
biology examples throughout — GC content, genome stats, growth curves, FASTA parsing. every error shown comes with an explanation and a fix.
- go to https://colab.research.google.com
- click File > Open notebook > GitHub
- paste this URL:
https://github.com/mbilal-OU/python_workshop - open
Python_Workshop_Biology.ipynb
# install what you need
pip install jupyter notebook pandas matplotlib
# get the files
git clone https://github.com/mbilal-OU/python_workshop.git
cd python_workshop
# start jupyter
jupyter notebookthen click Python_Workshop_Biology.ipynb.
run cells from top to bottom jupyter runs cells in the order you tell it to. if you skip cells, later ones might fail because earlier code never ran. if things break, go to Kernel > Restart & Run All.
errors are normal everyone gets them. even experienced programmers. when you see a red error box, read what it says — Python usually tells you exactly what's wrong. the Error Reference section at the bottom of the notebook covers the most common ones.
type the code yourself copy-paste works but typing it helps you remember it. and changing values to see what happens is honestly the best way to learn.
for most of the notebook, just Python + Jupyter is enough.
for Session 3 (pandas and plotting):
pip install pandas matplotlibPython_Workshop_Biology.ipynb <- the main tutorial (start here)
data/
example_sequences.fasta <- sample FASTA file to practice with
example_data.csv <- sample growth curve data
README.md
requirements.txt
if something doesn't make sense, ask in class. if you find a mistake, let me know.
good luck :)