Description Usage Arguments Value See Also Examples
resizeGenes
plot the differentially expressed genes, as specified
in DDSresult, sized accordingly
1 2 | resizeGenes(DDSresult, geneLists, sz = lseq(1, 6, length.out =
length(geneLists)), pch = 20, ...)
|
DDSresult |
a DESeqResults object |
geneLists |
a list of lists of genes to be resized |
sz |
a list of sized to be assigned to genes. |
pch |
point style to be displayed. by default pch = 20. |
... |
additional arguments to pass to par. |
no return, plotting side effect
par, overlay, , vplot
1 2 3 4 5 6 7 8 9 10 11 12 | require(DESeq2)
simDDS <- DESeq(simDDS)
res <- results(simDDS)
vplot(res, xlab = "log2FoldChange", ylab = "-log10(pvalue)")
potentialCancerDrivers <- sample(rownames(res), 100)
knownOncogenes <- c("gene866", "gene882", "gen614", "gene89", "gene70", "gene700", "gene205")
knownTumorRepressors <- c("gene614", "gene170", "gene441", "gene229", "gene363")
geneSets <- list(potentialCancerDrivers, knownOncogenes, knownTumorRepressors)
resizeGenes(res, geneSets, sz = 1:3, col = 2)
legend("top",c("Known Occogenes","Known Tumor Repressors",
"Potential Cancer drivers", "Other Genes"),
pt.cex = 1:3, col = c(2,2,2,1), pch = 20)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.