Probabilistic Methods for Bioinformatics: with an Introduction to Bayesian Networks