45 lines
1.0 KiB
JSON
45 lines
1.0 KiB
JSON
{
|
|
"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 (Cambridge, 1998), chapter 2, Pairwise alignment",
|
|
"url": "https://doi.org/10.1017/CBO9780511790492.003"
|
|
}
|
|
],
|
|
"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."
|
|
}
|
|
}
|