Pagni M. and Jongeneel CV., Making sense of score statistics for sequence alignments. Briefings in Bioinformatics 2001 Mar;2(1):51-67.