{ "name": "MatchScore", "summary": "The score of aligning letter A with letter B: Match when they are the same, Mismatch otherwise.", "tags": [ "alignment", "scoring" ], "sources": [ { "title": "Durbin, Eddy, Krogh and Mitchison, Biological Sequence Analysis, section 2.2" } ], "cases": [ { "call": "MatchScore('A', 'A', 1, -1)" }, { "call": "MatchScore('A', 'G', 1, -1)" }, { "call": "MatchScore('T', 'T', 5, -4)" } ], "references": [ { "lang": "python", "level": "plain", "file": "ref/python/plain.py", "note": "The same test." }, { "lang": "mojo", "level": "plain", "file": "ref/mojo/plain.mojo", "note": "The same test in Mojo; a letter is a String of one character." } ], "proof": { "lang": "dafny", "file": "proof/match_score.dfy", "note": "The score is Match exactly when the letters agree." } }