metaGE.heatmap | R Documentation |
The function metaGE.heatmap displays the heatmap of the zscores, the estimated marker effects or the pvalues of each markers (in rows) in each environments (in columns).
metaGE.heatmap(
Data,
Prefix = "Z.",
EnvGroups = NULL,
QTLsVarName = NULL,
RowOrder = TRUE,
ColOrder = TRUE,
ShowDendrogram = FALSE,
Colors = c("red", "black", "green"),
Main = ""
)
Data |
A dataset containing the zscores, the effects or the pvalues of each marker (in rows) in each environment (in columns), as obtained from |
Prefix |
The prefix of the score to display in the heatmap: " |
EnvGroups |
A dataset containing the names of the environments (in the first column) and the groups to which the environments belong (in the second column). (optional) |
QTLsVarName |
The name of the column indicating to which QTL the marker belongs. (optional) |
RowOrder |
A boolean specifying whether to reorder the markers or not. ( |
ColOrder |
A boolean specifying whether to reorder the environments or not. ( |
ShowDendrogram |
A boolean specifying whether to show the clustering of the rows and/or the columns. ( |
Colors |
A vector of three colors corresponding to the color scale of the Heatmap.(optional) |
Main |
The main to display.(optional) |
The heatmap
require(dplyr)
# Import the data
data("metaData")
# Compute the inter-environment correlation matrix
matCorr <- metaGE.cor(metaData, Threshold = 0.8)
# Fit the Fixed Effect model
FeDF <- metaGE.fit(metaData, matCorr, Method = "Fe")
# Control the FDR (here Benjamini-Hochberg)
Alpha <- 0.05
Signif <- FeDF$PVALUE %>% p.adjust(method = "BH") %>% `<`(Alpha) %>% which
# Draw the z-scores heatmap of the significant markers
heatmap <- metaGE.heatmap(Data = FeDF[Signif,],
Prefix = "Z.")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.