Hi,
Is there a way to use log2foldchange values to heatmap instead of varianceStabilizingTransformation (vd) values?
topVarGenes <- rownames(vd) %in% rownames(res[res$padj < 0.01,]) mat <- assay(vd)[ topVarGenes, ] df <- as.data.frame(colData(dds)[,c("time","daylength")]) pheatmap(mat, color = colorRampPalette(rev(brewer.pal(n = 9, name = "RdYlGn")))(100), cluster_rows=TRUE, show_rownames=FALSE, cluster_cols=TRUE, annotation_col=df, main="Heatmap")
Thanks.
J.
This a DataFrame, which in many ways acts like a data.frame. You can figure out what an object is with:
class(res)
Then you can look up help with:
?DataFrame
If you read on:
This is a useful website for learning basic R. Read the part about:
"There are a variety of ways to identify the elements of a data frame"
http://www.statmethods.net/input/datatypes.html