bs_hamming: bs_hamming

View source: R/hamming.R

bs_hammingR Documentation

bs_hamming

Description

hamming distances of sequences

Usage

bs_hamming(x, count_indel = FALSE, ...)

Arguments

x

BStringSet object

count_indel

whether count indel or not

...

additional parameters

Value

hamming distance

Author(s)

Guangchuang Yu

Examples

## Not run: 
fa_file <- system.file("extdata/HA.fas", package="seqmagick")
x <- fa_read(fa_file)
## align first 5 sequences, use `bs_aln(x)` to align all sequences
aln <- bs_aln(x[1:5])
bs_hamming(aln)

## End(Not run)

seqmagick documentation built on July 9, 2023, 7:36 p.m.