Based on the input data, this function will search all data along all sites to find a consensus sequence which may be or may not be one of the data.
find.consensus(X, code.type = .code.type[1], with.gap = FALSE)
A vector containing the consensus sequence with length
will be returned.
nid/sid matrix with
either "NUCLEOTIDE" (default) or "SNP".
FALSE (default) for no gap in consensus sequence.
Wei-Chen Chen wccsnow@gmail.com
X
should be a numerical matrix containing sequence data that
can be transfered by code2nid
or code2sid
.
Phylogenetic Clustering Website: https://snoweye.github.io/phyclust/
plotdots
.
if (FALSE) {
library(phyclust, quiet = TRUE)
find.consensus(seq.data.toy$org)
}
Run the code above in your browser using DataLab