Description Usage Arguments Details Value
Plot a mlst
object. A Minimum Spanning Tree or a binary
tree is rendered.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
x |
An object of class |
type |
One of "mst" or "phylo", for plotting a Minimum Spanning Tree or a binary tree. |
what |
One of "result", "profile", "both" (default). What should be plotted. |
pt.size |
The size of the point. Default: 3. |
label |
|
pf.col |
The color of profile nodes/tips. Ignored if |
st.col |
The color of result nodes/tips which have an ST assigned.
Ignored if |
nst.col |
The color of result nodes/tips with no ST assigned. Default:
|
alpha |
Color transparency, between [0,1]. See alpha. |
pairwise.deletion |
A |
plot.igraph.args |
A |
plot.phylo.args |
A |
tiplabels.args |
A |
plot |
Default: TRUE. |
... |
A list of arguments to be passed to par. |
Distance is calculated using dist.gene function over
the allele matrix. This distance metric only takes into account the number
of differences between each pair of rows in the matrix. If type="mst"
,
mst function is used to calculate a minimum spanning tree, and
a graph is generated using graph.adjacency. If
type="phylo"
, a "phylogeny" is inferred using the distance calculated
above and nj function (neighbour-joining tree). Ethier a
igraph
or a phylo
object is returned invisibly so it can be
further analysed using igraph/ape frameworks.
It is worth noting that the result of this function is not strictly based on genetic information. The distance used just counts the number of differences on the allele profiles, it doesn't use a genetic model. The clustering methods are also simple and are not based on complex evolution models. Despite the above, since alleles in mlst schemes usually differ in 1 or few nucleotides, the described methodology gives good enough results to have a general overview of your data.
A minimum spanning tree plot and an object of class igraph
(invisible) if type="mst"
, or a binary tree plot and an object of
class phylo
(invisible) if type="phylo"
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.