powered by
pairwiseEqual determined pairwise equivalence between a pairs in a set of sequences, excluding ambiguous positions (Ns and gaps).
pairwiseEqual
pairwiseEqual(seq)
A logical matrix of equivalence between each entry in seq. Values are TRUE when sequences are equivalent and FALSE
seq
TRUE
FALSE
when they are not.
character vector containing a DNA sequences.
Uses seqEqual for testing equivalence between pairs. See pairwiseDist for generating a sequence distance matrix.
# Gaps and Ns will match any character seq <- c(A="ATGGC", B="ATGGG", C="ATGGG", D="AT--C", E="NTGGG") d <- pairwiseEqual(seq) rownames(d) <- colnames(d) <- seq d
Run the code above in your browser using DataLab