Description Usage Arguments Details Value Author(s) References See Also Examples
This function produces an interactive two-dimensional scatterplot so that distances on the plot approximate the typical log2 fold changes between the samples.
1 |
x |
any data object which can be coerced to a matrix, such as |
top |
number of top genes used to calculate pairwise distances. |
labels |
character vector of sample names or labels. Defaults to |
gene.selection |
character, |
dir |
character string indicating the output directory for the plot. |
launch |
|
main |
character string specifying the title of the html page. |
This function generates an interactive MDS (multdimensional scaling) plot, based on the plotMDS
function from the limma package.
This plot is a variation on the usual multidimensional scaling (or principle coordinate) plot, in that a distance measure particularly appropriate for the microarray context is used.
The distance between each pair of samples (columns) is the root-mean-square deviation (Euclidean distance) for the top top
genes.
Distances on the plot can be interpreted as leading log2-fold-change, meaning
the typical (root-mean-square) log2-fold-change between the samples for the genes that distinguish those samples.
If gene.selection
is "common"
, then the top genes are those with the largest standard deviations between samples.
If gene.selection
is "pairwise"
, then a different set of top genes is selected for each pair of samples.
The pairwise feature selection may be appropriate for microarray data when different molecular pathways are relevant for distinguishing different pairs of samples.
An html page with an interactive MDS plot in which the dimensions plotted can be changed by the user.
Shian Su
Ritchie, ME, Phipson, B, Wu, D, Hu, Y, Law, CW, Shi, W, and Smyth, GK (2015). limma powers differential expression analyses for RNA-sequencing and microarray studies. Nucleic Acids Research 43, e47. http://nar.oxfordjournals.org/content/43/7/e47
plotMDS
from the limma package, interactiveMDplot
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | ## Not run:
library(Glimma)
library(edgeR)
load("x.rda")
# RNA-seq data set available from GEO under accession number GSE64099
# filter out genes with low read counts
sel = rowSums(cpm(x$counts)>0.5)>=3
x = x[sel,]
x$genes = x$genes[,c(1,3)]
des = model.matrix(~x$samples$group)
colnames(des)[2] = "Smchd1nullvsWt"
x = calcNormFactors(x, method="TMM")
genotype = x$samples$group
# See how replicate sample cluster
interactiveMDSplot(x, labels=1:7, col=as.numeric(genotype), main="MDS plot for Smchd1 experiment")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.