{ "name": "LinearGapPenalty", "summary": "The score of a gap of Length positions when every position of a gap scores Gap.", "tags": [ "alignment", "gap model" ], "sources": [ { "title": "Durbin, Eddy, Krogh and Mitchison, Biological Sequence Analysis, section 2.2" } ], "cases": [ { "call": "LinearGapPenalty(3, -2)" }, { "call": "LinearGapPenalty(0, -2)" }, { "call": "LinearGapPenalty(10, -1)" } ], "references": [ { "lang": "python", "level": "plain", "file": "ref/python/plain.py", "note": "The same product." }, { "lang": "mojo", "level": "plain", "file": "ref/mojo/plain.mojo", "note": "The same product in Mojo." } ], "proof": { "lang": "dafny", "file": "proof/linear_gap.dfy", "note": "The product equals the score built position by position: each of the Length positions adds Gap." } }