Please read part I. chapter 4. from book Bioinformatics and Functional Genomics You can find the pdf version of this book here: https://genetics.elte.hu/oktatasi_anyag/archivum/bioinfo/Bioinformatika_2017-2018/book.pdf