From Genes to Grids How Python Brings Sequence Alignment to Life
Talkat PythonAsia 2026 · on Sunday, 2026-03-22· at 10:30· Yuchengco Hall 5th Flr. Y507 (Workshop Room 1)·
summary
Tracks the lineage from Levenshtein and Myers diff to Needleman–Wunsch and Smith–Waterman, demonstrates a manual scoring grid and a from‑scratch Python implementation, then swaps to Biopython’s pairwise aligner for production use. Shows practical use cases like COVID variant tracking and cancer mutation detection, reports that different scoring changes results (example default match +2 mismatch -1 gap -2 yields multiple optimal alignments), and explains affine gaps with open -2 extend -0.5 as biologically motivated to treat long indels as one event.
AI-written summary · about
chapters (15)
- 0:00Sequence alignment with Python
- 1:04Practical applications
- 2:51Origins of alignment algorithms
- 6:02Needleman-Wunsch explained
- 8:29Global vs local alignment
- 8:52Building the scoring grid
- 13:05Grid to Python code
- 16:40Limitations of custom code
- 17:01Biopython for alignment
- 18:28Biopython gap penalties
- 21:38Biological gap scoring
- 22:22Interpreting Biopython output
- 23:48Key takeaways
- 25:57Python in sequence alignment
- 26:41Q&A on gap scoring
related talks
42mPython’s role in accelerating biomedical science
47mPython for Bioinformatics
38mPython in Bioinformatics
30m23, Python and Me: Using Machine Learning in Python to Analyze Consumer Genomics Data
30mBig data biology for pythonistas: getting in on the genomics revolution
24mHow I Used Python to Stop Worrying & Love Emoji in Bioinformatics
29mPython for Bioinformatics for learning Python
23mUsing Python for the PCR Design
