View source: R/siteNumbering.R
setSiteNumbering | R Documentation |
A reference sequence can be used to define a global site numbering scheme for multiple sequence alignment. The gap in the reference sequence will be skipped for the numbering. Also, the site that is gap or amino acid/nucleotide for too many tips will be ignored but won't affect numbering.
setSiteNumbering(x, reference, gapChar, ...) ## S3 method for class 'phyMSAmatched' setSiteNumbering(x, reference = NULL, gapChar = "-", minSkipSize = NULL, ...)
x |
The object to set site numbering. It could be a
|
reference |
Name of reference for site numbering. The name has to be one of the sequences' name. The default uses the intrinsic alignment numbering |
gapChar |
The character to indicate gap. The numbering will skip the
|
... |
Further arguments passed to or from other methods. |
minSkipSize |
The minimum number of tips to have gap or ambiguous amino acid/nucleotide for a site to be ignored in other analysis. This will not affect the numbering. The default is 0.8. |
The input x
with numbering mapped to reference
.
data(zikv_tree) msaPath <- system.file('extdata', 'ZIKV.fasta', package = 'sitePath') tree <- addMSA(zikv_tree, msaPath = msaPath, msaFormat = 'fasta') setSiteNumbering(tree)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.