phyMSAmatched | R Documentation |
addMSA
wraps read.alignment
function in
seqinr
package and helps match names in tree and sequence
alignment. Either provide the file path to an alignment file and its format
or an alignment object from the return of read.alignment
function. If both the file path and alignment object are given, the
function will use the sequence in the alignment file.
addMSA(tree, ...) ## S3 method for class 'phylo' addMSA( tree, msaPath = "", msaFormat = c("fasta", "clustal", "phylip", "mase", "msf"), alignment = NULL, seqType = c("AA", "DNA", "RNA"), ... ) ## S3 method for class 'treedata' addMSA(tree, ...)
tree |
A |
... |
Other arguments. |
msaPath |
The file path to the multiple sequence alignment file. |
msaFormat |
The format of the multiple sequence alignment file. The
internal uses the |
alignment |
An |
seqType |
The type of the sequence in the alignment file. The default is "AA" for amino acid. The other options are "DNA" and "RNA". |
Since 1.5.12, the function returns a phyMSAmatched
object to
avoid S3 methods used on phylo
(better encapsulation).
read.alignment
data(zikv_tree) msaPath <- system.file('extdata', 'ZIKV.fasta', package = 'sitePath') addMSA(zikv_tree, msaPath = msaPath, msaFormat = 'fasta')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.