View source: R/f_find_consensus.r
find.consensus | R Documentation |
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)
X |
nid/sid matrix with |
code.type |
either "NUCLEOTIDE" (default) or "SNP". |
with.gap |
FALSE (default) for no gap in consensus sequence. |
X
should be a numerical matrix containing sequence data that
can be transfered by code2nid
or code2sid
.
A vector containing the consensus sequence with length L
will be returned.
Wei-Chen Chen wccsnow@gmail.com
Phylogenetic Clustering Website: https://snoweye.github.io/phyclust/
plotdots
.
## Not run:
library(phyclust, quiet = TRUE)
find.consensus(seq.data.toy$org)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.