is an option for SequenceAlignment and related functions that gives the additional cost associated with each gap corresponding to a run of insertions or deletions.


GapPenalty
is an option for SequenceAlignment and related functions that gives the additional cost associated with each gap corresponding to a run of insertions or deletions.
Details

- GapPenalty->p specifies that the similarity of sequences should have an amount p subtracted for every run of insertions or deletions needed to align the sequences.
History
Text
Wolfram Research (2008), GapPenalty, Wolfram Language function, https://reference.wolfram.com/language/ref/GapPenalty.html.
CMS
Wolfram Language. 2008. "GapPenalty." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/GapPenalty.html.
APA
Wolfram Language. (2008). GapPenalty. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/GapPenalty.html
BibTeX
@misc{reference.wolfram_2025_gappenalty, author="Wolfram Research", title="{GapPenalty}", year="2008", howpublished="\url{https://reference.wolfram.com/language/ref/GapPenalty.html}", note=[Accessed: 08-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_gappenalty, organization={Wolfram Research}, title={GapPenalty}, year={2008}, url={https://reference.wolfram.com/language/ref/GapPenalty.html}, note=[Accessed: 08-August-2025]}