image.vhica {vhica} | R Documentation |
Consistency matrix for a transposable element in the VHICA analysis.
Description
This function plots a composite figure summarizing the evolutionary properties of a transposable element in a group of related species. Discrepancies may indicate horizontal transfers.
Usage
## S3 method for class 'vhica'
image(x, element = "", H1.test = "bilat", treefile = NULL,
skip.void = FALSE, species = NULL, p.threshold = 0.05,
p.adjust.method = "bonferroni", ncolors = 1024,
main = element, threshcol=0.1, colsqueeze=1,
species.font.family="mono", species.font.cex=1,
max.spname.length=10, ...)
Arguments
x |
An object of class |
element |
The name of the transposable element, as specified in the data files. If the element is not present in the data, the program halts. |
H1.test |
A value among |
treefile |
A Newick file containing a phylogenetic tree. Species names in the tree need to match the data. If absent, the figure will not display the phylogenetic relationship (which makes the interpretation impossible). |
skip.void |
Whether or not the figure should show species that do not contain the transposable element. |
species |
A named character vector to display pretty species names. The names of the vector are the real species names (as they will appear in the figure), the content of the vector are species codes as in the data files. |
p.threshold |
Threshold for the p-value (above which the color gradient increases). |
p.adjust.method |
As documented in |
ncolors |
Number of colors in the gradient. |
main |
Main title of the figure (default: the name of the transposable element). |
threshcol |
Part of the color spectrum devoted to non-significant values. |
colsqueeze |
Values larger than 1 shrink the color gradient around the threshold. |
species.font.family |
Font family for the species names. |
species.font.cex |
Font size of the species names. |
max.spname.length |
Maximum length of species names. Longer labels are truncated. |
... |
Further arguments to the generic function |
Details
The figure displays in blue TE copies that are more divergent than expected between species, and in red copies that are less divergent than expected. If several lineages of copies are present in a species, the table will be split to display both lineages. Keys for the interpretation of the pattern and the reconstruction of an evolutionary scenario are provided in the original publication.
Value
The function returns (invisibly) a list of elements (object of class vhicaimage
) which can be used for further analysis: tree
contains the phylogenetic tree (object of class "phylo"
), species
is the vector of species, stats
is a matrix of log10(P-values) (positive elements are minus log10(P) corresponding to positive residuals), codedS is a matrix reminding the divergence rates from the data. Calling the method summary.vhicaimage
on this object returns a nicely formatted data frame.
Author(s)
Implementation: Arnaud Le Rouzic <lerouzic@legs.cnrs-gif.fr>
Scientists who designed the method: Gabriel Wallau, Aurélie Hua-Van, Arnaud Le~Rouzic.
References
Gabriel Luz Wallau, Arnaud Le Rouzic, Pierre Capy, Elgion Loreto, Aurélie Hua-Van. VHICA: A new method to discriminate between vertical and horizontal transposon transfer: application to the mariner family within Drosophila. Molecular biology and evolution 33 (4), 1094-1109.
See Also
read.vhica
, plot.vhica
, summary.vhicaimage
.
Examples
file.cb <- system.file("extdata", "mini-cbias.txt", package="vhica")
file.div <- system.file("extdata", "mini-div.txt", package="vhica")
file.tree <- if(require("ape")) system.file("extdata", "phylo.nwk", package="vhica") else NULL
vc <- read.vhica(cb.filename=file.cb, div.filename=file.div)
plot(vc, "dere", "dana")
im <- image(vc, "mellifera:6", treefile=file.tree, skip.void=TRUE)
summary(im)