Skip to contents

This function aligns two strings using a Rust backend and returns the alignment score.

Usage

align(s1, s2, atype = c("local", "global", "semi-global"), verbose = F)

Arguments

s1

A character string representing the first sequence to align.

s2

A character string representing the second sequence to align.

atype

A character string specifying the type of alignment. Possible values are "local", "global", or "semi-global". Default is "local".

verbose

A logical value indicating whether to print detailed output. Default is FALSE.

Value

The alignment score.

References

This documentation was written by ChatGPT v4o - OpenAI, conversation with the author, 6-5-2024.

Examples

if (FALSE) {
align("AGCT", "AGC", "global", TRUE)
align("AGCT", "AGC")
}