GapPenalty

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.

Examples

Basic Examples  (2)

By default, an alignment is found with two gaps:

Increasing the penalty for gaps forces another alignment with fewer gaps:

The default alignment score:

Add an additional penalty for the gap:

Wolfram Research (2008), GapPenalty, Wolfram Language function, https://reference.wolfram.com/language/ref/GapPenalty.html.

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_2024_gappenalty, author="Wolfram Research", title="{GapPenalty}", year="2008", howpublished="\url{https://reference.wolfram.com/language/ref/GapPenalty.html}", note=[Accessed: 21-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_gappenalty, organization={Wolfram Research}, title={GapPenalty}, year={2008}, url={https://reference.wolfram.com/language/ref/GapPenalty.html}, note=[Accessed: 21-November-2024 ]}