force_align | R Documentation |
Perform forced alignment with increased gap open penalty
force_align(
read,
reference,
force_overhang = FALSE,
match_score = 2L,
mismatch_penalty = 2L
)
read |
A character string of the read. |
reference |
A character string of the reference. |
force_overhang |
Logical. If |
match_score |
An integer for scoring matches, ranging from 0 to 255. Default is 2. |
mismatch_penalty |
An integer for mismatch penalties, ranging from 0 to 255. Default is 2. |
A list of class ssw
containing the input sequences,
the ssw aligner object, and the alignment results.
# Results are truncated
a <- force_align("ACTG", "TTTTCTGCCCCCACG")
a
# Format the results
b <- a |> formatter()
b
# Print the formatted results directly
a |> formatter(print = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.