Learn R Programming

phyclust (version 0.1-9)

find.consensus: Find the consensus sequence

Description

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.

Usage

find.consensus(X, code.type = .code.type[1], with.missing = FALSE)

Arguments

X
nid/sid matrix with $N$ rows/sequences and $L$ columns/sites.
code.type
either "NUCLEOTIDE" (default) or "SNP".
with.missing
FALSE (default) for no missing in consensus sequence.

Value

  • A vector containing the consensus sequence with length $L$ will be returned.

Details

X should be a numerical matrix containing sequence data that can be transfered by code2nid or code2sid.

References

Phylogenetic Clustering Website: http://thirteen-01.stat.iastate.edu/snoweye/phyclust/

See Also

plotdots.

Examples

Run this code
find.consensus(seq.data.toy$org)

Run the code above in your browser using DataLab