Complex biomolecular networks Single channel

Chair (Coordinator) and Rapporteur: IOANNIS CHATZIGIANNAKIS

Objectives

The course aims to provide basics concepts and tools for complex networks analysis. The attendee will be able to apply complex networks concepts to biological networks and explore the underlying process and molecular related issues.

Learning outcomes

The course Complex Biomolecular Networks aims to give final-year bioinformatics students a solid foundation in algorithmic thinking and in the computational principles underlying the analysis of biological networks, sequences and structures. The course starts from the fundamentals: asymptotic analysis, computational complexity, and the distinction between tractable and intractable problems, with techniques such as exhaustive search, branch and bound, and heuristics. These tools are then applied to four areas of molecular biology. The first is biological networks: protein interaction and metabolic networks, degree distributions, graph traversal, strongly connected components, and weighted shortest paths. The second is phylogenetic inference: perfect phylogeny, small parsimony with the Fitch and Hartigan algorithms, sequence distances, and hierarchical clustering. The third is genome sequencing and assembly: string matching, the shortest common superstring, overlap and De Bruijn graphs, and indexing structures such as tries, suffix trees, and Bloom filters. The fourth is probabilistic modelling: Markov chains and Hidden Markov Models, applied for example to CpG-island detection. Students learn to formulate biological questions in computational terms, to design efficient solutions, and to judge critically whether the optimum of a mathematical formulation corresponds to a biologically meaningful result.

A central objective is to prepare students to work, today, with generative AI tools in an informed and critical way. Algorithmic competence is presented as the precondition for steering these tools, verifying their answers, and understanding the mechanisms behind them, rather than accepting their output passively. The course is organised around discussion units. In each unit, students implement and experiment with the relevant algorithms in Python and carry out a structured interrogation of a language model on a contestable claim drawn from the lectures. They then submit the full transcript of that exchange together with a short position sheet, and defend their conclusions orally in class. Two coding checkpoints assess whether students can explain and modify their own code, including code developed with AI assistance. By the end of the course, students will understand the mathematical and computational underpinnings of bioinformatics analysis. They will also be able to run computational experiments grounded in results they have computed themselves, and to argue for and defend their methodological choices before both human and AI interlocutors.

Prerequisites

To follow the course successfully, students should have basic knowledge of the following:
1. Python programming: data structures, control flow, file handling. Ability to write, run and debug scripts, including from the command line.
2. Discrete mathematics: sets, relations, functions, logic, combinatorics, and elementary graph concepts (paths, trees, connectivity).
3. Algorithms and data structures: sorting and searching, and basic design strategies (greedy, divide and conquer). Complexity and asymptotic notation are reviewed at the start of the course.
4. Elementary probability: events, conditional probability, independence, random variables and expectation.
5. Basic molecular biology: DNA, RNA and protein structure, and familiarity with sequence data (e.g. FASTA format).

No prior knowledge of artificial intelligence is required. Students do, however, need access to a generative AI assistant that lets them save the full transcript of their conversations.

Programme

Module 1 – Algorithms and Complexity in Bioinformatics
- Introduction to algorithm analysis
- Big-O, Ω, Θ notation
- Efficient vs. inefficient algorithms
- Tractable vs. intractable problems
- NP-complete problems in bioinformatics
- Algorithm design techniques: greedy, brute-force, backtracking, branch-and-bound, heuristics
Skills gained: analyzing complexity, designing algorithms for biological problems

Module 2 – Graphs and Molecular Networks
- Data structures for graphs: adjacency lists and matrices
- BFS and DFS traversal, cycle detection
- Shortest paths (Dijkstra, Bellman-Ford)
- Phylogenetic trees: basic definitions and use cases
- Introduction to network science: protein-protein and metabolic networks
Skills gained: graph traversal, modeling and analyzing biological networks

Module 3 – Genome Assembly
- Shotgun sequencing and next-generation technologies
- The shortest common superstring problem
- Overlap graphs and layout strategies
- Overlap-Layout-Consensus assembly
- De Bruijn graphs: construction and advantages
- Concepts of contigs and scaffolding
Skills gained: implementing genome assembly algorithms, understanding sequencing workflows

Module 4 – Phylogenetic Tree Construction and Sequence Alignment
- Multiple sequence alignment
- Phylogenetic tree reconstruction using parsimony
- Small and large parsimony problems
- Heuristic and data-mining approaches
- Alignment algorithms: Needleman-Wunsch, Smith-Waterman (brief overview)
Skills gained: building and evaluating evolutionary trees from sequence data

Module 5 – String Processing, Tries, and Suffix Trees
- Pattern matching in biological sequences
- Construction and use of tries and suffix tries
- Suffix trees for pattern detection and repeat finding
- Algorithms for identifying unique and repeated substrings
Skills gained: efficient text processing for genomic applications

Module 6 – Probability Theory and Statistical Modeling
- Basic discrete probability, independence, distributions
- Random variables and expected values
- Birthday paradox and its applications
- Modeling the occurrence of patterns in random sequences
Skills gained: applying probabilistic reasoning in biological data contexts

Module 7 – Markov Chains and Hidden Markov Models (HMMs)
- Markov chains: transition matrices, long-term behavior
- The “Fair Bet Casino” model
- Hidden Markov Models: definition and structure
- Evaluation, decoding, and learning problems
- Applications to CpG island detection and gene prediction
Skills gained: statistical modeling of sequence data, working with hidden states

Module 8 – Practical Programming and Cloud Computing
- Implementing algorithms in Python
- Using advanced data structures (dictionaries, heaps, graphs)
- Introduction to AWS: running scripts on EC2, handling large-scale datasets
- Case studies and project work
Skills gained: writing bioinformatics tools, using cloud resources effectively


Assessment: 3 Homework Assignments**: blending theory, coding, and real bioinformatics tasks

Books

Neil C. Jones and Pavel A. Pevzner. An Introduction to Bioinformatics Algorithms. MIT Press, Cambridge, MA, 2004.

Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest and Clifford Stein. Introduction to Algorithms, 4th edition. MIT Press, Cambridge, MA, 2022.

Jon Kleinberg and Éva Tardos. Algorithm Design. Pearson/Addison-Wesley, 2006.

Albert-László Barabási. Network Science. Cambridge University Press, 2016. Freely available online at networksciencebook.com.

Richard Durbin, Sean R. Eddy, Anders Krogh and Graeme Mitchison. Biological Sequence Analysis: Probabilistic Models of Proteins and Nucleic Acids. Cambridge University Press, 1998.

Joseph Felsenstein. Inferring Phylogenies. Sinauer Associates, 2004.

Lecture notes and course materials provided by the instructor.

Lessons mode

Complex Biomolecular Networks is taught in person, with two sessions per week. Lectures introduce the core concepts, from algorithm analysis and complexity to graphs, phylogenetics, genome assembly and probabilistic models. Each topic comes with worked examples and Python programming activities, and students are asked to bring their laptops to class.

The course is organised into seven discussion units, each linked to a block of lectures. For each unit, students receive a contestable claim about the material covered. They prepare at home by implementing the relevant algorithms and carrying out a structured interrogation of a generative AI model, with the aim of critically checking its answers against results they have computed themselves. The discussion takes place in class: students present and defend their position and respond to a second proposition that is not announced in advance. At the following lecture they submit a short closing reflection. Two coding checkpoints, with oral examination of the code, mark the first and second parts of the course.

Active participation is therefore built into the teaching itself. The goal is for students to learn to design efficient solutions, to understand the internal mechanisms of the tools they use, including AI-based ones, and to argue for their choices.

Frequency

The course is taught in person, with two lectures per week. Attendance is not formally mandatory, but it is strongly recommended and in practice necessary for the assessment pathway. The seven discussion units and the two coding checkpoints each include an oral discussion in class on dates set in the course calendar. Admission to the final exam requires at least 5 out of 10 points from the discussion units, counting the best five of seven. This allows students to miss up to two units without penalty.

Exam mode

Assessment in Complex Biomolecular Networks is based on the student’s ability to understand, implement and argue for the algorithmic solutions covered in the lectures. Active participation is a constitutive part of the assessment, not an add-on. The final grade, out of 30, has three components.

1. Discussion units (up to 10 points). Seven discussion units take place during the semester. Each is tied to a block of lectures and worth up to 2 points. Every unit is built around a contestable claim drawn from the course content. Before the discussion, students complete a Python programming component and carry out a structured interrogation of a generative AI model on the claim, consisting of four exchanges. They then submit the full transcript of that conversation together with a one-page position sheet. In class, they defend their position orally, including against a second proposition that is not announced in advance. At the following lecture they submit a short closing reflection. The oral defence accounts for 1.5 of each unit’s 2 points, so the written material alone carries limited weight. The best five of the seven units count towards the grade. A minimum of 5 out of 10 points is required for admission to the final exam.

2. Coding checkpoints (up to 6 points). Two checkpoints, worth 3 points each, assess the implementation of the algorithms from the first and second parts of the course. Students must be able to explain and modify their code under oral questioning. AI assistance in writing code is permitted, provided the student can demonstrate full understanding of it.

3. Final oral exam (up to 14 points). The final oral exam covers the whole course programme. It assesses understanding of the theoretical foundations, the ability to formulate biological problems in computational terms, and the ability to critically evaluate proposed solutions.

The use of generative AI is an explicit part of the course. The interaction transcript is a required deliverable, not evidence of misconduct. The originality of each student’s work is established mainly through oral discussion.

Example exam questions

Programming and analysis exercises
- Implement in Python an algorithm that counts the elements common to two lists and analyse its asymptotic complexity. Compare at least two solutions with different complexity.
- Given a metabolic network, identify its strongly connected components and futile cycles. Discuss the complexity of the algorithm used.
- Given a protein interaction network, compute the degree distribution, closeness and betweenness centrality, and the clustering coefficient. Check whether hubs correspond to essential proteins.
- In a metabolic network weighted by ATP balance, find the minimum-cost route between two metabolites. Explain why Dijkstra’s algorithm fails with negative weights and apply Bellman-Ford.
- Given DNA sequences from five species and a phylogenetic topology, find the most parsimonious labelling of the internal nodes with Fitch’s algorithm. Repeat with Hartigan’s algorithm on a non-binary tree.
- Given a set of reads, formulate the shortest common superstring problem, build the overlap graph and apply the greedy algorithm. Show how repeated sequences lead to a wrong assembly.
- Build the De Bruijn graph for a set of reads containing sequencing errors. Evaluate the effect of filtering rare k-mers as k varies.
- Build a trie and a suffix tree for a given text and use them to find the shortest string that does not repeat in the text.
- Given a Markov chain describing the immune response in a rabbit population, compute the distribution after four weeks and the stationary distribution.
- Given an HMM for CpG-island detection with known transition and emission probabilities, use the Viterbi algorithm to decode the most likely state sequence for a DNA string.

Example claims for the discussion units

“For realistically sized biological inputs, the asymptotically better algorithm is always the right choice.”
“Biological networks are scale-free.”
“The shortest path in a metabolic network corresponds to the biologically relevant pathway.”
“The most parsimonious tree is the best estimate of evolutionary history.”
“The shortest common superstring is the right objective for genome assembly.”
“In genome assembly, longer reads matter more than better algorithms.”

Example questions in the oral discussion
- At which point in your interrogation did the AI model give a wrong or incomplete answer, and how did you check it with your own code?
- Modify your program to handle a case it does not currently cover, and explain how the complexity changes.
- Which result you computed most directly supports your position, and which one weakens it?

Arguments

  • Algorithms and complexity - Algorithmic thinking as a tool for biological problems. Asymptotic analysis and growth of functions, comparison of algorithms, complexity classes P and NP. Intractable problems and ways to deal with them: exhaustive search, branch and bound, heuristics.
    • Books: JP cap. 2, 4; CLRS cap. 1–3, 34; KT cap. 2, 8.

  • Biological networks and graph algorithms - Protein interaction, metabolic, signalling and gene regulatory networks. Degree distributions and scale-free networks, centrality measures and the clustering coefficient. Graph traversal (BFS, DFS), strongly connected components, and weighted shortest paths with Dijkstra and Bellman-Ford, applied to the energy balance of metabolic pathways.
    • Books: NS cap. 2–4; CLRS cap. 20, 22; KT cap. 3, 4.4, 6.8.

  • Phylogenetic analysis - Reconstructing evolutionary history from characters and sequences. Perfect phylogeny, small parsimony with the Fitch and Hartigan algorithms. Sequence distances (Hamming, Jukes-Cantor, Kimura) and hierarchical clustering (UPGMA). Limits of parsimony in the presence of long branches.
    • Books: JP cap. 10; DEKM cap. 7; FEL cap. 1–2, 8, 9, 11.

  • Genome sequencing and assembly - Sequencing technologies and the assembly problem. String matching (naive, Boyer-Moore), shortest common superstring and the greedy algorithm, overlap and De Bruijn graphs, Eulerian walks. Assembly in practice: repeats, sequencing errors, k-mer counting. Indexing structures: tries and suffix trees.
    • Books: JP cap. 8, 9; CLRS cap. 32; KT cap. 8.5.

  • Probabilistic models - Probability review and probabilistic analysis, hashing and Bloom filters. Markov chains, evolution of the state distribution and the stationary distribution. Hidden Markov Models and the Viterbi algorithm, applied to CpG-island detection.
    • Books: DEKM cap. 3; JP cap. 11; CLRS app. C, cap. 11

  • Academic year2026/2027
  • Degree program to which the course belongsBioinformatics
  • Lesson code1049270
  • Year and semester3rd year - 1st semester
  • Activity typeAttività formative affini ed integrative
  • Academic areaAttività formative affini o integrative
  • SSDING-INF/05
  • Mandatory presenceNo
  • LanguageENG
  • CFU6 CFU
  • Total duration48 hours
  • Hours distribution48 classroom hours