Description Usage Arguments Value See Also Examples
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.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
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).
1 2 3 | 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.